You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On a browser that is set to prefer dark mode, the Grommet site flashes white for about a second before turning dark. This is disconcerting to the user and makes the site "feel" slow, because it is waiting for the JS to load, parse, and read window.matchMedia('(prefers-color-scheme: dark)').matches (or auto) rather than simply using SSG CSS prefers-color-scheme media query.
grommet-flash.mov
The text was updated successfully, but these errors were encountered:
On a browser that is set to prefer dark mode, the Grommet site flashes white for about a second before turning dark. This is disconcerting to the user and makes the site "feel" slow, because it is waiting for the JS to load, parse, and read
window.matchMedia('(prefers-color-scheme: dark)').matches
(orauto
) rather than simply using SSG CSSprefers-color-scheme
media query.grommet-flash.mov
The text was updated successfully, but these errors were encountered: