When any user visits on your site all image of your site are automatic start loading and the user get a bad impression from your site because your site takes so much time to load.
If your blog time is high like my blog then it's so hard to rank on google but if you see your site loading speed increases for the image load then you can fix it by using image lazy load.
When anyone browses your site then if this person scrolls down then your site image is load so the full load time has digressed and it helps you lot for making your site super fast.
How to add
Now let's talk about how you can add this script on your blogger blog. Follow all the below steps to install an automatic lazyloading image system on your blogger blog.
- Open blogger dashboard
- Go to the theme section then theme HTML edit.
- Now search for </body> tag
- If you want to search for anything on the theme then click on the HTML code then press Ctrl + F now you see a small search box opened, type your keyword, and hit enter.
- Now paste the below code after the </body> tag
<script>
//<;b.loaded=true}).attr("src",a(b).attr("original"))}});if("scroll"!=c.event){a(b).bind(c.event,function(c){if(!b.loaded){a(b).trigger("appear")}})}});a(c.container).trigger(c.event);return this};a.belowthefold=function(b,c){if(c.container===undefined||c.container===window){var d=a(window).height()+a(window).scrollTop()}else{var d=a(c.container).offset().top+a(c.container).height()}return d<=a(b).offset().top-c.threshold};a.rightoffold=function(b,c){if(c.container===undefined||c.container===window){var d=a(window).width()+a(window).scrollLeft()}else{var d=a(c.container).offset().left+a(c.container).width()}return d<=a(b).offset().left-c.threshold};a.abovethetop=function(b,c){if(c.container===undefined||c.container===window){var d=a(window).scrollTop()}else{var d=a(c.container).offset().top}return d>=a(b).offset().top+c.threshold+a(b).height()};a.leftofbegin=function(b,c){if(c.container===undefined||c.container===window){var d=a(window).scrollLeft()}else{var d=a(c.container).offset().left}return d>=a(b).offset().left+c.threshold+a(b).width()};a.extend(a.expr[":"],{"below-the-fold":"$.belowthefold(a, {threshold : 0, container: window})","above-the-fold":"!$.belowthefold(a, {threshold : 0, container: window})","right-of-fold":"$.rightoffold(a, {threshold : 0, container: window})","left-of-fold":"!$.rightoffold(a, {threshold : 0, container: window})"})})(jQuery);$(function(){$("img").lazyload({placeholder:"https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj6DZ69-N0yNThtptEYEVAFPyTkejeWwzWD7pezIfUSeJ3WdBqmGHJIUjwO1OTt8X3wmP9IpkJzZHrxy5Nz1GLQPMK5pyoFdEtp3r4-nZTMujS0g3B_Ep9Q5zqWOoMLBJngBdM1E73MZrM/s10/loadingku.gif",effect:"fadeIn",threshold:"-50"})});
//]]>
</script> - Now save your theme.
comment 0 Comments
more_vert