Created
June 15, 2016 15:29
-
-
Save JDMcKinstry/3bebae10335e2626ee9987516b5765a0 to your computer and use it in GitHub Desktop.
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
var cjsSelector = ''; | |
;(function() { | |
var iDoIt = 1; | |
function doIt() { | |
/* ↓↓↓ DO WORK IN HERE ↓↓↓ */ | |
jQuery(cjsSelector).remove(); | |
/* ↑↑↑ DO WORK IN HERE ↑↑↑ */ | |
iDoIt = iDoIt < 10 ? iDoIt + 1 : 1; | |
setTimeout(doIt, iDoIt * 1000); | |
} | |
if (document.readyState == 'complete') doIt(); | |
else window.onload = doIt; | |
})(); | |
if (jQuery) jQuery(cjsSelector).remove(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment