Skip to content

Dealing with the flash of unstyled content (FOUC) problem #222

Answered by ElMassimo
lucperkins asked this question in Q&A
Discussion options

You must be logged in to vote

Hi Luc!

If you provide a specific example, I might be able to pinpoint what the problem might be in your scenario.


When using site generators like Hugo or Jekyll, any JS components would be rendered only after hydration, causing FOUC and layout shifts. îles allows you to avoid both problems.

With îles, Vue components are pre-rendered (leveraging Vue's SSR capabilities), so the HTML is available before JS kicks in.
Since Vite will extract styles and CSS is a blocking resource, the first render would already have the necessary styles and HTML.

As a result, in most cases (example) an îles site will look exactly the same even if JS is disabled.

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by ElMassimo
Comment options

You must be logged in to vote
1 reply
@ElMassimo
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants