gabrielecirulli / hn-special

A modern theme for Hacker News, with some added niceties.
MIT License
333 stars 71 forks source link

Unthemed flash on page load before the visual theme is applied #95

Closed gabrielecirulli closed 8 years ago

gabrielecirulli commented 8 years ago

Steps to reproduce

  1. Enable the visual theme and/or the dark theme
  2. Refresh the page multiple times and observe the page as it loads

    Actual result

On page load, the page flashes without the theme for a split-second, and then the themed version appears

Expected result

The page doesn't flash without the visual theme before finally loading the theme

Notes

This didn't happen before the latest version. If I remember correctly, the extension would purposefully hide the whole page via CSS until it was ready, and only display it when the theme was ready to render. That doesn't appear to happen now.

It could also be due to a change in the chrome configuration for when the extension should be loaded (in older version it was set to run the extension as early as possible)