Javascript/jqueryライブラリ/lazyload.js
提供: 初心者エンジニアの簡易メモ
lazyloadとは
画像の遅延ロード
download
wget https://raw.githubusercontent.com/tuupola/jquery_lazyload/master/jquery.lazyload.min.js
サンプル
<script src="jquery.js" type="text/javascript"></script> <script src="jquery.lazyload.js" type="text/javascript"></script> <img class="lazy" data-original="img/example.jpg" width="640" height="480"> <script type="text/javascript"> $(function() { $("img.lazy").lazyload({ effect : "fadeIn" }); }); </script>