jQuery.holdReady(false) – errors when invoked

I’m using yepnope.js to conditionally load css and js files into my page.

I’ve merged my JS files into a single file. The structure is as follows:

  • hoisting behavior changed between chrome 48 and 49 ?
  • What is this technique to resize the images proportionally used by google chrome new tab?
  • What happens (or doesn't happen) in a chrome tab opened in the background?
  • Rumble support with Gamepads?
  • preventing firefox reload confirmation
  • Internet Explorer and Edge failing to allow Google sign-in
  • /* file */
    
    // - copy pasted Jquery 1.7rc2.min here -
    
    (function () { console.log("enabled hold"); jQuery.holdReady(true); })();
    
    // - copy pasted yepnope.min here -
    
    yepnope([
    {
        test: condition,
        load: [css files]
    },{
         load:[js files],
         callback: function () {...},
         complete: function () { jQuery.holdReady(false); console.log("hold released");}
    }]);
    
    /* end of file */
    

    and this is the error i get on Google chrome console (version 17.x.x)

    Uncaught TypeError: Object function ( selector, context ) {
            // The jQuery object is actually just the init constructor 'enhanced'
            return new jQuery.fn.init( selector, context );
        } has no method 'holdReady'
    (anonymous function)animatein.js:2
    (anonymous function)
    

    I read the yepnope bug list and tried alternate menthods like having “holdrelease.js” and only jQuery.holdRelease(false); in it and placing it as the last item in queue. I ended up with the same error.

    can someone explain what’s wrong here, am I missing something important? I’m confused…

  • Is there such a thing as not enough arguments in JavaScript? Why?
  • Time Interval between two CORS requests using jquery ajax
  • How can I make window.showmodaldialog work in chrome 37?
  • Keydown Which Not Working Chrome Extension
  • Navigator.sendBeacon() data size limits
  • Chrome vs. Safari JavaScript