What are some good practices for loading a conditional javascript file using modernizr now that yepnope and .load are deprecated in the latest version of modernizr.
Used to be able to use the .load function. http://modernizr.com/docs/#load
Modernizr.load({
test: Modernizr.geolocation,
yep : 'geo.js',
nope: 'geo-polyfill.js'
});
Now .load is deprecated along with yepnope. https://github.com/SlexAxton/yepnope.js/
Reference for answer prior to yepnope being deprecated Loading Scripts Using Modernizr... Not Working