litespeedtech / litespeedtech/lscache_wp

Flash of Unstyled Content when I use Litespeed Gust mode optimization

Open
#975 5 comments 0 reactions 0 assignees View on GitHub
Dominant language
PHP
Stars
257
Forks
123
PR merge metrics
No merged PRs in 30d

Description

When I enable LiteSpeed Guest Mode optimization, the website performs very well, but there’s an issue: on both mobile and desktop, the first visit to the site initially loads an unstyled hamburger menu before the page switches to its normal styled layout.
Let me share the screen shoot for you.
But after I turn off this mode, my Google PageSpeed score drops drastically. I admit this mode does make the website much faster, but I can’t fix the abnormal loading issue where the hamburger menu appears without styles at first. Could you please help me?

Image

Image

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the first-visit behavior shown in the attached screenshots with LiteSpeed Guest Mode optimization enabled on both mobile and desktop. Compare the initial hamburger menu with the normal styled layout and identify the cause of the unstyled flash; done means the first visit renders the styled menu while Guest Mode remains enabled.

Written by the indexing model from the issue text.

Assessment

Tech stack
php, wordpress
Domain
frontend, performance, web-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.