Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Defer method to deferred loading of any method requiring jQuery on root level of webpages
function defer(method) {
if (window.jQuery) {
if (jQuery.countdown) {
} else {
setTimeout(function() { defer(method) }, 50);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.