jQuery: $(document).ready and $(window).load


$(document).ready(function(){
//code
});

Specify a function to execute when the DOM is fully loaded.


$(window).load(function(){
//code
});

Specify a function when the page is fully loaded including graphics.

Advertisements