Example of Improved Behaviour.addLoadEvent If you are using MSIE or a Gecko-based browser, the functionality associated with the following button (via Behaviour) should be executed when clicked and before before the image below loads: Click me Modified code for Behaviour.addLoadEvent var Behaviour = ( ... addLoadEvent : function(func){ //Enable application of Behaviours when just the DOM is loaded