Tags

links:
http://api.jquery.com/ready/
http://learn.jquery.com/about-jquery/how-jquery-works/

summary:
– The handler passed to .ready() is guaranteed to be executed after the DOM is ready, so this is usually the best place to attach all other event handlers and run other jQuery code.
– called before all images are loaded
– 3 ways to call:
= $( document ).ready( handler )
= $().ready( handler ) // not recommended
= $( handler )

Advertisements