Friday, 7 September 2012

How to add query loader (‘LazyLoad’) Script For Blogger And Customize It:

What is the QueryLoader (LazyLoad).

QueryLoader is a blank black ( can be changed ) screen that covers your blog till all content loaded, which means that your visitors won’t see the actual loading of your blog, instead of that, they will see a loading page with a bar and percentage of the overall blog loading, it’s build using j-query and css. easy to apply to your blogger blog, and customize able.

Step 1, adding the jave files.

In this step we will add a scripts files to your blogger template.
Please navigate to your dashboard >> Design >> edit html , and please find the following code,
And exactly before it add the following code
<script src='' type='text/javascript'/>
<script src='' type='text/javascript'/> 

Step 2, adding the jave Codes.

And on the same page, please find the following code,
And before it add the next code,
 QueryLoader.selectorPreload = &quot;body&quot;;

Step 3, adding the Css Codes.

now on the same page too, find this code,
And before it , add this code,
.QOverlay {
 background-color: #000000;
 z-index: 9999;

.QLoader {
 background-color: #CCCCCC;
 height: 1px;

.QAmt {
 margin:-60px 0 0 -50px;
now Click Save Template 
And your blog now have the script installed and ready, click preview or view your blog to see the script in action.

Additional Step, Customize the colors.

Now this is an extra step and you can do it or not, as you like, :-)
If you want to change the colors, you have to change values in the css code, “step 3″
Please look at the following image to know what what you should change to get your own style.

No comments:

Post a Comment