Layout shift detected at google page speed insights. How do i fix this?
Ok i found out the culprit its delay JS execution. The good thing is if i deactivate this on Wp rocket there is no CLS. The bad thing is the page loads 2x slower. There is an option to exclude files in WP rocket. Can someone let me know which exact files i should exclude
Hi,
Yes, this issue is caused by the gallery slider. There are two ways to fix it:
-
You can exclude this file hivepress/assets/js/frontend.js at master · hivepress/hivepress · GitHub from WP Rocket.
-
Disable the gallery slider in the settings.
I hope this is helpful to you
Excluding the files did not work and I cant find where to disable gallery slider
ok i found where to disable gallery slider. not sure why my cls is still high if not higher. However psi is showing a good 0.008 cls score in lighthouse. Real life however is showing 0.22. Im not sure whats causing it. And this is after i disabled gallery slider
Hi,
Thank you for the details. We are glad you were able to resolve this. We will try to optimize everything in the next updates. Also you can additionally disable loading animation using this documentation: How to remove the page loading icon - HivePress Help Center