Super-handy jQuery code snippet to run JavaScript after a complete page has loaded

Nothing to do with WordPress directly but if you’re looking to run some JavaScript in a template/file somewhere AFTER everything on a page has completely loaded then this could be just the thing:

$(window).bind("load", function() {
   // place your code here
});

That’s it – end of post!

By WinningWP Editorial

Run by Brin Wilson, WinningWP is an award-winning resource for people who use – you guessed it – WordPress. Follow along on Twitter and/or Facebook.
Comments (policy)