Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
<%
Option Explicit
Response.Buffer = False 'turn the buffer off
%>
<html>
<head>
<!-- We will be adding some script here -->
</head>
<body>
<%
'heavy code execution here
%>
</body>
</html>
<%
Option Explicit
Response.Buffer = False 'turn the buffer off
%>
<html>
<head>
<script language="JavaScript">
<!--
//-->
</script>
</head>
<body>
<div id="loadMessage"> Please Wait, Loading...</div>
<%
'heavy code execution here
%>
</body>
</html>
<%
Option Explicit
Response.Buffer = False 'turn the buffer off
%>
<html>
<head>
<script language="JavaScript">
<!--
function remLoadMessage(){
document.getElementById("loadMessage").style.display = "none";
}
//-->
</script>
</head>
<body onLoad="remLoadMessage">
<div id="loadMessage"> Please Wait, Loading...</div>
<%
'heavy code execution here
%>
</body>
</html>
<%
Option Explicit
Response.Buffer = False 'turn the buffer off
%>
<html>
<head>
<script language="JavaScript">
<!--
//initialize startTime from server start time
var startTime = <%=Second(Now())%>;
<%
'Store the start time to re-use down below in case of minute/hour/day rollover
Dim stTime
stTime = Now()
%>
var endTime;
var minWaitingTime = 2;
function waitMessage(){
setEndTime();
if(startTime + minWaitingTime > endTime){
setTimeout("remLoadMessage();",(startTime + minWaitingTime - endTime)*1000 + 1);
}
else{
remLoadMessage();
}
}
function remLoadMessage(){
document.getElementById("loadMessage").style.display = "none";
}
//-->
</script>
</head>
<body onLoad="waitMessage();">
<div id="loadMessage"> Please Wait, Loading...</div>
<%
'heavy code execution here
%>
<script language="JavaScript">
<!--
function setEndTime(){
endTime = startTime + <%=DateDiff("s",stTime,Now())%>;
}
//-->
</script>
</body>
</html>