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: "https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhb2Fx2oJb2UvrRO5TIrca7J99YqzCU7Dn7EGrYke_M4IQJsUknpp1xSC4ofeRC5QZf7OUec-2g24C2Bk08ZmTWQBxkRqCX9a_cYiyAIUO3gHx6awIDQfzDkyk1oqihMC55xOjzlgdPsP0/s1600/grey.gif"
});
});
</script>
Labels: TutOrial
Older Post | Newer Post