FOUC on npmjs.org in Firefox

STR:

  1. using Firefox, navigate to https://www.npmjs.com/

Expected: page loads without FOUC
Actual: there’s a flash of unstyled content

The reason is because the first <link> is after <body>. If you put it in <head>, before any <script>s, it will prevent the FOUC.

I think I have a fix for this :crossed_fingers:

Just rolled it out! Should be fixed. This had been annoying me too, for over a year.

1 Like

Thanks so much! Can confirm the FOUC is gone.