Created
November 4, 2010 19:36
-
-
Save ralphholzmann/663043 to your computer and use it in GitHub Desktop.
Allows you to bind to jQuery.ready before jQuery has been loaded
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Bind functions to dom ready before jQuery has been loaded | |
// This only works if line 83 from jQuery 143 is changed from | |
// readyList = [], | |
// to | |
// readyList = window.jQuery.readyList || [], | |
(function(){ | |
jQuery = $ = function( fn ) { | |
return typeof fn === "function" ? | |
jQuery.readyList.push( fn ) : | |
{ ready : arguments.callee }; | |
}; | |
jQuery.readyList = []; | |
}).call(window); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment