Sunday, 12 February 2012

Blog Lelet Mampus


Mbah google, bantuin ane dunksszz...
Puyeng gara-gara loading blog ane leletnya mampus minta ampun, si mbah cuap-cuap kasi ide berikut :
  1. Omptimalkan ukuran image disini
  2. Kompres kode CSS disini
  3. Gunakan Lazy Load Script dengan menaruhnya di atas kode </head>
    Kode...
      <script charset='utf-8' src='http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js' type='text/javascript'/>
    <script src='http://bloekoetoek-blogonol.googlecode.com/files/blogonol-lazyload.js' type='text/javascript'/>
    <script charset='utf-8' type='text/javascript'>
    $(function() {
    $(&quot;img&quot;).lazyload({placeholder : &quot;https://lh5.googleusercontent.com/_u4rBCfM4eII/TXksAi6R_OI/AAAAAAAABZY/2k63Mrtswf0/grey.png&quot;,threshold : 200});
    });
    </script>
  4. Tambah widget HTML untuk mengurangi loading gambar. Berikut kodenya :
    Cekidot disini...
    <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>

SEKIAN DAN TENGKYU... (Kate si mbah)

1 comment:

Related Posts Plugin for WordPress, Blogger...
One Piece Logo One Piece Logo Blacy Smiley - Exciting