.ready() | jQuery API Documentation
All three of the following syntaxes are equivalent: $( document ).ready( handler ) $().ready( handler ) (this is not recommended) $( handler ) There is also $(document).on( "ready", handler ), deprecated as of jQuery 1.8. This behaves similarly to the rea...