Ringankan blog dengan Lazy Load jQuery

Definition : Lazy Load jQuery ni kurangkan tempoh load page pada blog esp kalau korang suka sangat letak banyak gambar dalam blog. Kalau scroll blog ke bawah, gambar muncul secare tiba-tiba
Dashboard>Design>Add a Gadget>HTML/javascript 
paste code bawah ni kat ruangan HTML/javascript tu. Pastu Save ;  
<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: "http://3.bp.blogspot.com/_LZtXSNcp76A/THkEtEOZfrI/AAAAAAAABRo/IARVMD_8TwA/s1600/grey.gif"});});</script>

2 comments:

I don't approve harsh comments (: