In one of my java script file got the following line : Event.observe(window,’load’,ls.init,false);Event.observe(window,’load’,ls.init,false); So, when I load the chrome browser, it throw an error as below: TypeError: document.observe is not a function Solution: Just change the above line to the following. $(window).load(function(){ ls.init; });$(window).load(function(){ ls.init; });