Lazy load XT 是一个用于图像、视频和其他媒体的 jQuery 插件
PS. In `src` directory you can found `jquery.lazyloadxt.simple.js`, it is initial LazyLoadXT version of minimal size
with excluded support of on* handlers, lazy* events, `blankImage` option and addons.
## jQLight
LazyLoadXT may be used without jQuery framework by loading small
[`jqlight.lazyloadxt.min.js`](https://raw.github.com/ressio/lazy-load-xt/master/dist/jqlight.lazyloadxt.min.js) script
(1.3KiB gzipped):
``` html ```
…
``` css img.lazy { display: none; } ```
``` html ```
We recommend to keep the order of attributes in both `` tags, because of such a code will be effectively gzipped.
Alternative approach is based on tagging images/videos with `
``` ```html
``` Demo: http://ressio.github.io/lazy-load-xt/demo/youtube-iframe.htm ### 支持 `` 标签 这也很简单,只需将 `src` 属性替换为 `data-src`,将 `poster` 替换为 `data-poster`(如果存在)。 ```html
``` ```html
``` Demo: http://ressio.github.io/lazy-load-xt/demo/video-html5.htm ## 可扩展性 Lazy Load XT 插件可以通过 `oninit`,`onshow`,`onload` 等函数进行轻松扩展。暂无开放 Issues,或尚未同步最近议题。