Monday, 11 July 2011

TutOriaL: Cara nak ringankan blog


Assalammualaikum semua..

dah lame rasenyer ktowg x wat tutorial baru. so, kali nie ktowg nk share pasal cara nk ringan an blog. if blog kowg 2 lembap yg tramat sgt nk loading so, ape kate try tutorial ape kate try tutorial yg ktowg wat nie.

1. Dashboard>Design>Add a gadget>HTML/ javascript
2.  Copy(ctrl+c) code kt bawah nie 


<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></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: "http://3.bp.blogspot.com/_LZtXSNcp76A/THkEtEOZfrI/AAAAAAAABRo/IARVMD_8TwA/s1600/grey.gif"
});
});
</script>

3. Paste(ctrl+v) kat HTML/javascript then save. siap!
 
 

1 comment:

  1. code ini hanya berfungsi untuk gambar je,bukan blog keseluruhanya.

    ReplyDelete

Related Posts Plugin for WordPress, Blogger...