S Y A Z W A N I T Y P I N G
Follow here


Tutorial : Ringankan Blog Guna Jquery Lazy Load ON Saturday, March 12, 2011 AT 9:17 AM

Assalamualaikum ,dengan lafaz BISMILLAHIRAHMANIRAHIM ,semua orang nak blog yang cepat loading kan ?kalau buka stau blog yang load dia dekat setengah jam sure semua tutup kan ?so mai sini kita blajaq cara nak bagi ringan blog .

  • dashboard>design>Add a gadget>HTML/ javascript  
  • Paste code dibawah 
<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>

Labels:




Older Post | Newer Post