Skip to content

Instantly share code, notes, and snippets.

@neovea
Last active July 18, 2017 09:51
Show Gist options
  • Save neovea/ac7c9321d03b01cccce222570751190d to your computer and use it in GitHub Desktop.
Save neovea/ac7c9321d03b01cccce222570751190d to your computer and use it in GitHub Desktop.
Wainting for jQuery to be loaded before execution jQuery code
(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