Dummy Javascript for a fast load timeIn the HEAD section is no JavaScript loaded. The load of the JavaScript occurs only at the end of the page. To bridge this time are in the HEAD short dummy functions.
When the JavaScript is loaded at the end of the page, much time can pass at a slow internet connection between show the content and loading the JavaScript. In this time, mouse over effects can cause javascript errors. So in the <HEAD> is defined: <SCRIPT> function bp(){} function oc(){} function tn(){} </SCRIPT> That are all used mouseover functions bp = ButtonPicture, oc = OverlayChange, tn = ThumbNail. As soon as at the end of the page, the real JavaScript is loaded, the dummy functions are replaced by the real functions. Until this time, natural, the mouse over effects do not work. But for the visitors is it better to be able to read a page in the first seconds, where the mouse over effects are not working, instead of staring on an empty page. |