Modernizr.load (yepnope.js) IE conditional confusion

The following code dd_belatedpng.jsloads, even though I'm using Firefox 4.0.1. According to the documentation of yepnope.js, the prefix ielt7!should cause the script to load if the IE browser is less than version 7. Is this functionality removed from the Modernizr.load implementation (I assumed that it was just an alias for another), or an error, or, as I suspect, I just didn't notice / didn't understand something obvious? Thank you for your help. Here is the code.

Modernizr.load([
    {   
        load: '//ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js',
        complete: function() {
            if(!window.jQuery) {
                Modernizr.load('/inc/jquery-1.6.1.min.js');
            }   
        }   
    },  
    {   
        load : 'ielt7!/inc/dd_belatedpng.js',
        callback: function() {
            $(function() {
                DD_belatedPNG.fix("img, .png_bg");
            }); 
        }   
    }/*,
    'jquery.plugins.js',
    'my.scripts.js'*/
]);
+5
source share
1 answer

You probably forgot to include the fileyepnope.ie-prefix.js .

+8
source

All Articles