gayguide
Forum Replies Created
-
I found this: https://github.com/whatwg/html/issues/3510
It would be great if a better solution than mine could be included in this great plugin 🙂
I use the lazyloader from the “W3 Total Cache” plugin.
- This reply was modified 2 years, 10 months ago by gayguide.
Sorry for this stupid hack, but it works well. I changed some lines in the mosaic function.
var width = image.naturalWidth;
width = 284;
var height = image.naturalHeight;
height = 150;
if (!(height === 0 || height === undefined || width === undefined)) {
var aspectRatio = width / height;
photos.push({
src: image.src,
width: width,
height: height,
aspect_ratio: aspectRatio,
photo_position: position
});
}I fixed the problem by hard-coding in the naturalWidth and naturalHeight details, which were not readable under Firefox with Lazyplugin. Perhaps this fix can be adopted? The other views also work well together with Lazyload without adaptation.
- This reply was modified 2 years, 10 months ago by gayguide.
Thank you very much for the quick answer. I have re-enabled lazyload and if you look at the site with Safari, Chrome or Edge you will see that it works very well. Unfortunately, it doesn’t work in Firefox. My concern is that the first images should be displayed quickly. It is clear to me that you have to wait for the other images when scrolling.
- This reply was modified 2 years, 10 months ago by gayguide.
When I deactivate lazyload, over 30mb are loaded from the page. With layzyload only 4-5mb.
What do you mean that Photonics Layout is optimised? I deactivated Lazyload and now all the images are loaded immediately, it’s too much and too slow 🙁
- This reply was modified 2 years, 10 months ago by gayguide.