Search This Blog

15.7.12

5 PAGE-LOAD TIMER SCRIPT FOR BLOGGER BLOGS.

Have you seen websites displaying web-page load time? Do you want this feature in your blog? If yes,then Read-on.

In this post,I will be explaining how you can easily add this widget to your blog.

How to add load timer to blogger blogs

To add this widget to your blog,follow the steps below.

Step 1:

Login to Blogger & go to Design/Layout » Edit HTML[Always remember to backup your template.] Check the box next to Expand Widget Template and search for <head> by pressing CTRL+F. Once you get that,copy-paste the codes below directly after it.
<!-- page load timer --> <script type='text/javascript'> var d = new Date(); var starttime = d.getTime(); //Get the start time </script>

Step 2:

Find </body> in your template and immediately before that,copy-paste this code:
<!-- page load timer begins --> <script type='text/javascript'> var d2 = new Date(); var endtime = d2.getTime(); //Get the end time //Find the difference between the start and end times var totaltime = (endtime - starttime)/1000; //Round 2 decimal places var result = Math.round(totaltime*100)/100; //Output results to a&quot;P&quot; element document.getElementById(&quot;loadtime&quot;).innerHTML = &quot;Page loaded in:&quot; result &quot; seconds&quot;; </script> <!-- page load timer ends -->

Preview and Save template.

Step 3:

Login to Blogger » Design »Page element and select 'Add a gadget'. Next,scroll down till you find "HTML/JAVASCRIPT" and click on ADD. Now,copy-paste the following codes in it:
<!-- Widget portion --> <p id="loadtime">Your custom message goes here</p>
Finally,save widget and view your blog to see the load-timer. If you are not satisfied with the “Page loaded in:” that displays together with the load-time,simply change it in “step 2” above.
«PREVIOUS NEXT» ¤HOME¤

5 comments so far.
What do you think?

Anonymous said... [Reply]

Terrific post but I was wondering if you could write
a litte more on this topic? I'd be very thankful if you could elaborate a little bit more. Thank you!
Feel free to surf my web blog :: www.physicalytherapystatenisland.com

Da_Soljar said... [Reply]

What exactly are you not clear with?

Anonymous said... [Reply]

With havin ѕo muсh wrіtten content dо уοu eѵеr run into any іssues of
plagοrіsm or copyright viοlatiοn?
Μy blog has а lot οf uniquе content I've either created myself or outsourced but it seems a lot of it is popping it up all over the web without my authorization. Do you know any techniques to help reduce content from being ripped off? I'd truly aρprecіate іt.
Here is my blog ... facebook fans kaufen

Anonymous said... [Reply]

Sizzling hot Book of Ra spielen has a huge exciting and qualifications tale, because there is about
the exciting activities in the old Egyptian. If they throw a
big pre-flop raise and look at this way, is quite clear,
in the last hour flop continuation bet (cbets) 3 then.
He then becomes more superstitious and does not
realize that it was his subconscious that made him lose the game.
Here is my page : Abbie

Anonymous said... [Reply]

It's remarkable to visit this web site and reading the views of all mates regarding this piece of writing, while I am also eager of getting know-how.

Feel free to surf to my blog ... Crysis 3 Hunter
My page > linked web page

Leave your comments behind!!

If you experienced any difficulty understanding this post,do tell us. But,please do not spam.
Your suggestions are also very valuable to us. Thanks...
The Author.

Leave your comments.

If you need reply to your comments,please do not comment as `Anonymous`
Found a Dead or Unresponsive link?, Kindly inform us using the Comment Box.

 
[GET THIS]