High performance and SEO friendly lazy loader for images (responsive and normal), iframes and more, that detects any visibility changes triggered through user interaction, CSS or JavaScript without configuration.
lazysizes/plugins/parent-fit/ls.parent-fit.js
Line 65
in
1523a4f
var content = css.content || css.fontFamily;
I like to set the parent-fit in CSS, but the content is always "normal" and...
Describe your problem/question
When I go to https://validator.w3.org/ to validate HTML of my website, I get an
Error: Element img is missing required attribute src.
You can check your demo page http://afarkas.github.io/lazysizes/#examples and see that error.
It is true when I replace img by data-src...
Describe the bug
When using the blur up plugin, the inline style set for the images are lost during the plugin execution.
Steps to reproduce the behavior:
Use the blur-up plugin for lazysizes.
Set inline styles on an Image element (e.g.: aspect-ration: 1 / 1;)
Add blur-up and lazyload classes to th...
Is your feature request related to a problem? Please describe.
This is to improve performance of loading and increase pagespeed score
Describe the solution you'd like
For preloaAfterLoad should append to head as "prefetch" án browser will load during idle cpu which is better than loading agressively...
i have image injected inside outer world app. And this world app has vtex-lazyload based on lazysizes.
And its configured as
{
"lazyClass": "js--lazyload",
"loadedClass": "is--lazyloaded",
"loadingClass": "has--lazyloading",
"preloadClass": "js--lazypreload",
"errorClass": "has--...
Describe the bug
A short, clear and concise description of what the bug is.
To Reproduce
Provide a url where the bug can be reproduced. (Use for example: jsbin, codepen, jsfiddle.net or codesandbox.io
Steps to reproduce the behavior:
Provide all necessary steps to reproduce the bug.
What is the expe...
Describe the bug
lazySizes Object is undefined in Safari
To Reproduce
http://afarkas.github.io/lazysizes/#examples
Steps to reproduce the behavior:
Inject Javascript:
var lz_Obj = window.lazySizes; console.log('window.lazySizes TYPE: ' + typeof lz_Obj, lz_Obj);
What is the expected behavior:
conso...
var lazyObj = window.lazySizes;
//console.log('window.lazySizes Object: ' + JSON.stringify(lazyObj));
var imgs = document.getElementsByClassName('lazyload');
for (var i = 0; i < imgs.length; i++) {
var img = imgs[i];
lazyObj.loader.unveil(img);
// img.classList.add('lazypreload');
}
The image...
Describe the bug
Demo site images load error 403 404
To Reproduce
Provide a url where the bug can be reproduced.
http://afarkas.github.io/lazysizes/#examples
Steps to reproduce the behavior:
Load example page. Click
What is the expected behavior:
Content loaded with no 403 404 errors
What happened...
supportScroll for headless navigator
So I saved a website offline (sitesucker) and trying to convert the webpages to PDF's using the WKHTMLTOPDF library using command lines.
I found out with some JS that WKHTMLTO PDF's headless navigator support sscroll events.
Navigator: Netscape
App version: 5.0 (...