关于
作者
Github
中文文档

jQuery Lazy Load 图片延迟加载

大量图片加载

当页面中存在上百张,甚至数百张图片时,建议使用 scrollstop 事件。

<script src="jquery.scrollstop.js"></script>

<img src="grey.gif" data-original="example.jpg">
$('img').lazyload({
  event: 'scrollstop'
});
6bfb18606bfb18646bfb18696bfb18706bfb18716bfb18726bfb18736bfb18776bfb18786bfb18796bfb18806bfb18816bfb18846bfb18856bfb18886bfb18906bfb18936bfb18956bfb18976bfb18996bfb19006bfb19016bfb19036bfb19086bfb19106bfb19126bfb19136bfb19146bfb19166bfb19176bfb19186bfb19196bfb19226bfb19236bfb19246bfb19256bfb19266bfb19276bfb19366bfb19376bfb19406bfb19416bfb1942 6bfb19436bfb19456bfb19466bfb19476bfb19486bfb19496bfb19506bfb19516bfb19526bfb19536bfb19546bfb19586bfb19596bfb19606bfb19636bfb19666bfb19696bfb19726bfb19736bfb19746bfb19766bfb19776bfb19786bfb19796bfb19806bfb19816bfb19836bfb19846bfb19856bfb19866bfb19876bfb19886bfb19896bfb19906bfb19946bfb19956bfb19986bfb1999 6bfb20086bfb20156bfb20196bfb20206bfb20236bfb20246bfb20256bfb20266bfb20276bfb20286bfb20306bfb20316bfb20326bfb20336bfb20346bfb20356bfb20366bfb20376bfb20386bfb20396bfb20406bfb20416bfb20426bfb20466bfb20476bfb20496bfb20506bfb20556bfb20566bfb20576bfb20586bfb20596bfb20606bfb20616bfb20626bfb20636bfb20646bfb20666bfb20686bfb20696bfb20706bfb2071 6bfb20756bfb20776bfb20796bfb20806bfb20816bfb20826bfb20836bfb20846bfb20856bfb20866bfb20876bfb20886bfb20906bfb20916bfb20936bfb20946bfb20956bfb20966bfb20986bfb21006bfb21016bfb21026bfb21036bfb21046bfb21066bfb21106bfb21116bfb21126bfb21136bfb21146bfb21156bfb21166bfb21196bfb21236bfb21246bfb21256bfb21266bfb21276bfb21286bfb21296bfb21306bfb21316bfb21326bfb21336bfb21346bfb21376bfb21426bfb21466bfb21486bfb21506bfb21516bfb21526bfb21566bfb21576bfb21586bfb21606bfb21676bfb21686bfb21696bfb21716bfb21726bfb21736bfb21746bfb2175 6bfb21786bfb21806bfb21816bfb21826bfb21836bfb21846bfb21856bfb21866bfb21916bfb21936bfb21946bfb21956bfb21966bfb21976bfb21986bfb21996bfb22006bfb22016bfb22026bfb22036bfb22046bfb22056bfb22066bfb22116bfb22226bfb22256bfb22296bfb22306bfb22316bfb22326bfb22336bfb22376bfb22386bfb22406bfb22446bfb2248 6bfb22516bfb22526bfb22536bfb22546bfb22556bfb22626bfb22636bfb22646bfb22666bfb22676bfb22696bfb22706bfb22716bfb22726bfb22746bfb22876bfb23006bfb23016bfb23026bfb23036bfb23046bfb23076bfb23086bfb23096bfb23106bfb23146bfb23156bfb23166bfb23176bfb23186bfb23196bfb23236bfb23246bfb23266bfb23276bfb23286bfb23296bfb23336bfb23346bfb2336 6bfb23386bfb23436bfb23476bfb23496bfb23526bfb23546bfb23576bfb23586bfb23596bfb23606bfb23676bfb23686bfb23696bfb23706bfb23736bfb23746bfb23756bfb23766bfb23776bfb23786bfb23856bfb23876bfb23896bfb23906bfb23916bfb23926bfb23936bfb23946bfb23956bfb2396