mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-05-24 18:41:03 +00:00
20 lines
483 B
JavaScript
20 lines
483 B
JavaScript
/*!
|
|
{
|
|
"name": "image and iframe native lazy loading",
|
|
"property": "lazyloading",
|
|
"caniuse": "loading-lazy-attr",
|
|
"tags": ["image", "lazy", "loading"],
|
|
"notes": [{
|
|
"name": "Native image lazy-loading for the web",
|
|
"href": "https://addyosmani.com/blog/lazy-loading/"
|
|
}]
|
|
}
|
|
!*/
|
|
/* DOC
|
|
Test for the loading attribute of images and iframes
|
|
*/
|
|
|
|
define(['Modernizr'], function (Modernizr) {
|
|
Modernizr.addTest('lazyloading', 'loading' in HTMLImageElement.prototype);
|
|
});
|