Last active
July 18, 2017 09:51
-
-
Save neovea/ac7c9321d03b01cccce222570751190d to your computer and use it in GitHub Desktop.
Wainting for jQuery to be loaded before execution jQuery code
This file contains 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
(function() { | |
var timer = setTimeout(function() { | |
if (window.jQuery) { | |
clearTimeout(timer); | |
// Jquery code goes here | |
} | |
}, 50) | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment