Lazy load not working with last update
-
Hello!, lazy load not working with last update. How to solve it?
Thanks
-
This topic was modified 4 years ago by
Rostyslav.
-
This topic was modified 4 years ago by
-
hey rostyk1000; there were no significant changes in lazyloading logic that I can think of, so i’ll need more info from you;
1. what is not working exactly? are images not loading, or are they loading but just not lazily?
2. can you share the url of your site so I can review what is (not) happening there?frank
Hello, I am using VersiΓ³n 2.9.5.1 because in all the new versions the images are loading but just not lazily (1).
My lazy load configuration: https://ibb.co/LpnWVrx
I just uploaded autoptimize to the latest version, so you can check my website: liser-cubiertas.es
Just had a look at the homepage (with a cache-buster string added to the URL to make sure I saw a “fresh” version) HTML source and all seems OK to me rostyk1000:
1. you have multiple
<imgtags which have the SVG-placholder assrcand the *real* img URL asdata-src
2. you havelazysizes.min.jsloaded (incl. the lazysizes configuration).
why do you think images are not lazyloaded?
PageSpeed Insights with last version: https://ibb.co/K9z13kp 22 image requests
PageSpeed Insights with version 2.9.5.1: https://ibb.co/k3RkCvd 2 image requestsSomething is not working properly with 3.0 versions
No idea what going on with 2.9.5.1 rostyk1000; AO’s lazyload (or more correct lazysizes, which is what AO uses to do lazyload) has always loaded all images albeit with a short delay; it loads visible images immediately and then waits on the
onLoadevent by virtue of lazysizesloadmode=1configuration parameter to load all others.I would like to check the HTML page source of your site on AO 3.0.2 once more to double-check, could you temporarily upgrade again @rostyk1000 ?
Done! (My theme is generatepress)
(With autoptimize 3.0.2 and lazy loading activated I have 22 image request when I should have 2 image request maximum.)
I just tested generatepress + autoptimize 3.0.2 in a new wordpress installation and lazy loading still no working properly.
-
This reply was modified 4 years ago by
Rostyslav.
OK, this is not as much a lazyloading issue, but a problem with images being preloaded (which is new logic in AO30), which is also mentioned in https://wordpress.org/support/topic/new-version-is-adding-countless-preload-tag/ …
So have you used the “LCP image” in the per post/page Autoptimize metabox somewhere?
I’m also using GeneratePress (it’s great) but can’t reproduce the bug on my end … :-/
OK, could you download the beta zip-file and upload/ activate it (with 3.0.2 disabled) to test if the issue indeed is also fixed for you? π
With beta version is working perfectly!
https://pagespeed.web.dev/report?url=https%3A%2F%2Fliser-cubiertas.es%2F
Can I delete the 3.0.2 version instead of having it disabled?
Thanks!
good to hear, AO 3.0.3 will be out by Friday (or maybe tomorrow, Thursday) π
and yes, you can stay on the beta and delete the “production” version if you prefer π
So this bug essentially pre-loads all the images instead of lazy loading them, actually slowing the site initial load down?
afraid so, yes.
Oh man, when it rains…I’m curious to see how the scores look post patch. I literally updated from 5.9.x yesterday then was seeing weird scores and so I hopped on here, thankfully. At least it is something you can fix pretty easy? You still on target for today, or at the latest tomorrow on the full release? Any other bugs included?
-
This reply was modified 4 years ago by
The topic ‘Lazy load not working with last update’ is closed to new replies.