Skip to content

Instantly share code, notes, and snippets.

View ajbeaven's full-sized avatar

Andrew Beaven ajbeaven

View GitHub Profile
@ajbeaven
ajbeaven / gist:5417456
Created April 19, 2013 01:19
Showing how Modernizr.Load calls the complete() function weirdly. Run in ie7 to see the problem.
$(function () {
Modernizr.load([
{
test: Modernizr.json,
nope: ['js/vendor/polyfills/json3.js'],
complete: function() {
alert('json3 loaded: json ' + (window.JSON ? 'exists' : 'doesn\'t exist'));
}
},
{