4 ms·
To avoid a flicker, add <meta name="color-scheme" content="light dark" /> to the <head> tag, and also put the JavaScript code in <head> so it runs before
by theodorejb 3y ago
To avoid a flicker, add
<meta name="color-scheme" content="light dark" />
to the <head> tag, and also put the JavaScript code in <head> so it runs before any content is shown.
- petemilly 3y agoAh that's also a good idea. I added a todo for myself to take a stab at this at some point.