Bug found: Jetpack Lazy Loading Incompatibility
-
Hello, I have recently installed Amp for WP to replace the stock AMP plugin. Very well done! I have come across a couple of small issues that are causing major headaches, which I assume could be affecting many users unknowingly.
For reference, I use Jetpack CDN / Lazy Loading for images and static files. I also use Fastest Cache and Autoptimize for load speed improvements. The issues below have been checked with both of caching / optimization plugins cleared and deactivated, which did not stop the problems.
1.) When I installed AMP for WP a week ago, my website suddenly stopped lazy loading images on non-AMP pages and I started getting PageSpeed warnings related to this issue. I contacted Jetpack and they could see that Lazy Loading was trying to initialize when a page was opened but was then being blocked. After deactivating each of my plugins and clearing my cache, I was able to find that the AMP for WP plug was the one blocking lazy loading from all of my pages (AMP pages lazy loaded fine, only issues with non-AMP). With the plug in turned off, everything works fine. Is there a fix that can be implemented to make these compatible? Without it, this plugin ends up making my site slower overall, despite creating faster and pretty AMP pages so I have temporarily deactivated it while I find a solution.
2.) I also had another issue come up where my non-AMP pages are loading the css for the AMP version as well, which is causing unused css files to slow down my load times. I can verify this with PageSpeed where I have a warning about loading unused css files lagging load times by 4.6 seconds, and the files disappear when I deactivate AMP for WP and clear the cache. To be clear, I am not worried about the PageSpeed report for my AMP pages, that all seems fine and there are no unused css issues. It is only on my non-AMP pages where they are loading the AMP scripts as well. Do you have any thoughts on how I can prevent this from happening? Again, the benefits I am getting from my nice new AMP pages are being offset by the lag I am getting on my non-AMP.
Thank you for the help and the really beautiful plugin!
Grant
- The topic ‘Bug found: Jetpack Lazy Loading Incompatibility’ is closed to new replies.