Tuesday 28 January 2014

Melajukan Loading Blog

Tutorial ni bertujuan untuk melajukan/ mempercepatkan loading bagi sesuatu blog. Kod ini tidak berkesn sekiranya blog mempunyai terlalu banyak widget. Apa pun selamat mencuba.



1. Dashboard > Design > Add Gadget > HTML/JavaScript

2. Copy code dibawah ni.

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"><script type='text/javascript' src='https://sites.google.com/site/jquery01/jquery.lazyload.mini.js?ver=1.5.0'></script><script type="text/javascript">jQuery(document).ready(function($){if (navigator.platform == "iPad") return;jQuery("img").lazyload({effect:"fadeIn",placeholder: "https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgA9coOFA_AbVbzFPFQstlv7sLEen3o2YsPipUO_xD3sgX1hYqtPI-yGmYy1mrsprcscVN9VwD4AcguCJwDxvdjtx6aj3fTF4S9wg8dt8UABhwbyU65tUDqWUuHSkgp7RD2yzrXqWf1KCU/s1600/grey.gif"});});</script><script src='https://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js' type='text/javascript'></script><script type='text/javascript' src='https://sites.google.com/site/jquery01/jquery.lazyload.mini.js?ver=1.5.0'></script><script type="text/javascript">jQuery(document).ready(function($){if (navigator.platform == "iPad") return;jQuery("img").lazyload({effect:"fadeIn",placeholder: "https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgA9coOFA_AbVbzFPFQstlv7sLEen3o2YsPipUO_xD3sgX1hYqtPI-yGmYy1mrsprcscVN9VwD4AcguCJwDxvdjtx6aj3fTF4S9wg8dt8UABhwbyU65tUDqWUuHSkgp7RD2yzrXqWf1KCU/s1600/grey.gif"});});</script><script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"><script type='text/javascript' src='https://sites.google.com/site/jquery01/jquery.lazyload.mini.js?ver=1.5.0'></script><script type="text/javascript">jQuery(document).ready(function($){if (navigator.platform == "iPad") return;jQuery("img").lazyload({effect:"fadeIn",placeholder: "https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgA9coOFA_AbVbzFPFQstlv7sLEen3o2YsPipUO_xD3sgX1hYqtPI-yGmYy1mrsprcscVN9VwD4AcguCJwDxvdjtx6aj3fTF4S9wg8dt8UABhwbyU65tUDqWUuHSkgp7RD2yzrXqWf1KCU/s1600/grey.gif"});});</script>

3. Pastekan diruangan HTML.
4. Klik Save. 

1 comment: