jmarantz commented on issue #2051: URL: https://github.com/apache/incubator-pagespeed-mod/issues/2051#issuecomment-729726265
It's possible. Part of the problem might be that mod_pagespeed's server-side cache might be cold at the time that PSI queries the site. Part of what mod_pagespeed caches is the set of indexes that it thinks are off-screen, based on JavaScript sending back beacons from users' browsers. So in that case PageSpeed Insights might be pessimistic grading an MPS-enabled site. I don't think there's much that can be done easily to fix that. On Wed, Nov 18, 2020 at 9:40 AM Lennart Fries <notificati...@github.com> wrote: > If I run the official pagespeed insights test at > https://developers.google.com/speed/pagespeed/insights/ it does show that > I could save about 7 seconds using "Defer offscreen images". But we do have > mod_pagespeed enabled with *ModPagespeedEnableFilters lazyload_images*. > Using my browser I can see source code like this on our site for the > exactly same images Pagespeed Insights does complain about (in this case > about image.png.pagespeed.ce.BPup_jOUJ2.png): > <img data-pagespeed-lazy-src="/path/image.png.pagespeed.ce.BPup_jOUJ2.png" > alt="" title="" src="/pagespeed_static/1.JiBnMqyl6S.gif" > onload="pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);" > onerror="this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);"/> > > > Is it possible that the Pagespeed Insights are excluded from the > mod_pagespeed optimizations somehow? I've seen that bots are excluded. > > — > You are receiving this because you are subscribed to this thread. > Reply to this email directly, view it on GitHub > <https://github.com/apache/incubator-pagespeed-mod/issues/2051>, or > unsubscribe > <https://github.com/notifications/unsubscribe-auth/AAO2IPIGI7H7QBKILAOOQ4DSQPMF5ANCNFSM4T2BZXDQ> > . > ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org