Created
July 19, 2016 17:48
-
-
Save cameroncowden/a067f9bd22b25ff5b8ab024eabdf04e0 to your computer and use it in GitHub Desktop.
A convenient little wrapper for jQuery. Useful for any small page-specific JS tweaks.
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
(function($){ | |
$(window).load(function(){ | |
//load event is sent when element and all sub-elements have been completely loaded | |
//includes images, scripts, frames, iframes, and the window object. | |
//note: care when manipulating elements visible on the initial pageload | |
}); | |
$(document).ready(function(){ | |
//fires when the dom is ready (page display might be pre- or partially- rendered) | |
}); | |
})(jQuery); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment