Quantcast
Channel: MyBB Community Forums - Tutorials
Viewing all articles
Browse latest Browse all 690

Pre Load your forum

$
0
0
Hi,

This little mod pre-loads the forum before even actual showing you the forum, it loads all the contents such as images, css, etc.

Put this code at the bottom of your forums headerinclude template:
PHP Code:
<SCRIPT LANGUAGE="JavaScript">

<!-- 
Begin
function loadImages() {
if (
document.getElementById) {  // DOM3 = IE5, NS6
document.getElementById('hidepage').style.visibility 'hidden';
}
else {
if (
document.layers) {  // Netscape 4
document.hidepage.visibility 'hidden';
}
else {  
// IE 4
document.all.hidepage.style.visibility 'hidden';
      }
   }
}
//  End -->
</script>
</head>
<BODY OnLoad="loadImages()" style="overflow-x: hidden;">
<div id="hidepage" style="position: absolute; left:0px; top:0px; background-color: #FFFFFF; layer-background-color: #FFFFFF; height: 100%; width: 100%;"><table width="100%" height="100%"><tr><td valign="middle" align="center">Forum Content Loading... Please wait.</td></tr></table></div> 
Enjoy Smile

Viewing all articles
Browse latest Browse all 690

Trending Articles