Issue with Flash of Unstyled Content after enabling Guest Optimization
-
Hello,
I’ve recently implemented LiteSpeed Cache on our website to optimize performance, and I encountered an issue related to Flash of Unstyled Content (FOSC) after enabling Guest Optimization in the general settings.
Problem Description:Upon enabling Guest Optimization, I noticed that the homepage of our website experiences a Flash of Unstyled Content (FOSC) issue. When accessing the homepage, there’s a brief moment (approximately 2-3 seconds) where the content appears unstyled before reverting to its proper appearance. This issue occurs inconsistently, affecting both desktop and mobile devices, sometimes only one or the other.
Observations:
- The FOSC issue is limited to the homepage; other pages appear unaffected.
- Enabling Guest Mode alone does not cause the FOSC issue; however, it does not significantly improve the mobile speed score.
- Enabling Guest Optimization along with Guest Mode improves speed scores on both desktop and mobile devices, but it triggers the FOSC issue.
- Disabling Guest Optimization resolves the FOSC issue, but it significantly impacts the speed scores, particularly on mobile devices.
- The “Generate UCSS” setting seems to be related to the FOSC issue, as enabling it causes the problem. Additionally, when testing settings individually, enabling Guest Optimization is the only way to improve the mobile speed score significantly.
Additional Information:
- PageSpeed Insights report highlighting the FOSC issue: PageSpeed Report
- My current LiteSpeed settings
So at the end my question is, is there a way to use the Guest Optimization feature without getting the FOSC issue? If there any guide, information, insight I could use I would be really grateful. Plus if you need any other info or if I have to do anything please don’t hesitate to tell me, thank you ??
The page I need help with: [log in to see the link]
- The topic ‘Issue with Flash of Unstyled Content after enabling Guest Optimization’ is closed to new replies.