Pages

Friday, April 20, 2012

Blog Loading Time

Would you like to know how much time your blog get load properly? Do you know, now you can easily find out how fast your blog loading time?
Just put the script below above </HEAD>.

<script type="text/javascript">
<!-- Begin
/* This script and many more are available free online at
The JavaScript Source!! http://javascript.internet.com
Created by: Abraham Joffe :: http://www.abrahamjoffe.com.au/ */

var startTime=new Date();

function currentTime(){
var a=Math.floor((new Date()-startTime)/100)/10;
if (a%1==0) a+=".0";
document.getElementById("endTime").innerHTML=a;
}

window.onload=function(){
clearTimeout(loopTime);
}

// End -->
</script>

Next, put the script below where ever suit for you.


<script type="text/javascript">
<!-- Begin
document.write('This page took <span id="endTime">0.0</span> seconds to load.');
var loopTime=setInterval("currentTime()",100);
// End -->
</script>

Please, see for yourself if it works or not.
Good luck !!!

No comments:

Post a Comment

Archives