Get the jQuery Version
Many JavaScript frameworks provide a version
property on their main object, providing a quick bit of important information about the framework. The main jQuery object doesn't provide this property, however, so developers need to do a bit more work to get that version information. Here's how to get the jQuery version number for a given jQuery script!
The jQuery JavaScript
The jQuery version lives within jQuery.fn
:
var v = jQuery.fn.jquery;
/*
You may also use:
var v = jQuery().jquery; // "1.4.2"
*/
The jquery
property of the jQuery.fn
object provides the version number as a string. Not as easy as .version
access, but provides the jQuery version nonetheless!
Back in late 2012 it was not easy to find open source projects using requestAnimationFrame()
- this is the hook that allows Javascript code to synchronize with a web browser's native paint loop. Animations using this method can run at 60 fps and deliver fantastic...
Before we get started, it's worth me spending a brief moment introducing myself to you. My name is Mark (or @integralist if Twitter happens to be your communication tool of choice) and I currently work for BBC News in London England as a principal engineer/tech...
Before each of the browser vendors we like was providing unique CSS controls, Internet Explorer was setting the tone. One such example is IE's early implementation of CSS filters. Internet Explorer was also the first browser that allowed developers to, for better or worse, customize...
David asked me if I'd be up for a guest post picking out some of my favorite Pens from CodePen. A daunting task! There are so many! I managed to pick a few though that have blown me away over the past few months. If you...