Browsing articles tagged with "modernizr Archives - MetaFlood"
Oct
23
2011

Use jQuery and Modernizr to load javascript conditionally, based on existence of DOM element

In the past year or so, Modernizr has really exploded on the web development scene. It allows the detection of browser abilities, such as geolocation, canvas, etc. Version 2 also merged with yepnope.js which allows for the conditional loading of CSS & JS. If you don’t know what Modernizr is, their site provides lots of clear documentation to show you its’ power. The one thing that wasn’t clear to me, was if I could load […]