• Resolved mikehermary

    (@mikehermary)


    My client’s website is having issues with the theme briefly flashing in the browser as unstyled HTML when the plugin is enabled. The flash occurs on all page types including the homepage, categories, pages, and posts. I have tried adjusting some of the CSS optimization settings, but this has not corrected the problem. The unstyled flash of HTML occurs for all users, either logged-in or not.

    Any ideas?

    Cheers,

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi @mikehermary, usually flash of unstyled content is caused by “Load CSS Asynchronously”, you need to turn ON “Generate Critical CSS” to prevent the FOUC.

    I cannot find the FOUC issue on your site now, please check after you turned “Generate Critical CSS” ON, you can find <style id=”litespeed-optm-css-rules”>.

    If you the inner text of this style is empty, that means CCSS is not generated yet. That’s why you still can meet unstyled content when your internet speed is not fast enough. Then you can turn off “Generate Critical CSS In Background” to force it generated when visit.

    Thread Starter mikehermary

    (@mikehermary)

    Hello,

    I adjusted some settings including disabling “Load CSS Asynchronously”, then cleared all the caches. This seems to have fixed the issue.

    Cheers,

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Flash of un-styled theme content’ is closed to new replies.