Most of the time you'll want your script to launch and/or be available as soon as the DOM is loaded and ready. For this, you can use the standard "on document ready" technique as follows:
jQuery(document).ready(function(){
// Your jQuery script go here
});
You are currently reading a PREVIEW of this book.
Get instant access to over
$1 million worth of books and videos.