当且仅当图片出现在可视区域内,才会自动加载;将真正的图片地址设置到data-src中,在js中通过ImageLazyload.init()启动并初始化组件,页面上的图片就会自动按需加载了
-
Notifications
You must be signed in to change notification settings - Fork 17
zxlie/image-lazyload
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
图片延迟加载组件
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published