Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function yourFunctionToRun(){
- //Your JQuery goodness here
- }
- function runYourFunctionWhenJQueryIsLoaded() {
- if (window.$){
- //possibly some other JQuery checks to make sure that everything is loaded here
- yourFunctionToRun();
- } else {
- setTimeout(runYourFunctionWhenJQueryIsLoaded, 50);
- }
- }
- runYourFunctionWhenJQueryIsLoaded();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement