• Resolved zaidkhalid

    (@zaidkhalid)


    The HTML version of the site appears first whenever i load my site, after a second all site load perfectly.The css seems to load late. the page content loads without formatting for a second, and then re-loads with the correct formatting.

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support LiteSpeed Lisa

    (@lclarke)

    That’s known as “Flash of Unstyled Content” or FOUC.

    It happens when you load CSS asynchronously.

    Take a look at this doc to see why it might be happening on your site, and how to fix the issue.

    Thread Starter zaidkhalid

    (@zaidkhalid)

    I off the Generate Critical CSS in the Background . Should i on it after some time? after turning of the problem is still there. Is it take some time to generate CCSS?

    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    Please check this wiki , it may give you some idea

    Best regards,

    Thread Starter zaidkhalid

    (@zaidkhalid)

    i am asking can i on Generate Critical CSS in the Background after the problem had solved? And should we keep it off for permanently?

    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    Let me explain how CCSS works , so you can have a better idea.

    When you have load async CSS, that means HTML code is loaded BEFORE css, therefore, rendered without style , CCSS is to address this issue by insert the “critical” part of style (usually the view port part ) into HTML , so it can renders with style for the view port , while loading CSS Asynchronously

    So when you set it to foreground , the page will wait until CCSS rule is generated and inserted into HTML code , therefore you won’t see the unstyled page.

    if you set it background , it will still be unstyled if you purged CCSS rule. as the generation is not at same time as page generation.

    All in all , I’d personally suggest to set it to foreground , it may delay few seconds if CCSS is not generated , but it will be smooth afterwards.

    Best regards,

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Broken site’ is closed to new replies.