dom ready
$(document).ready(function() { //code here }); $(window).load(function(){ //code here }); window.onload = function() { //code here };