Roast topics
Find topics
Roast it!
Roast topics
Find topics
Find it!
Login
From:
chriskirknielsen
(Uncensored)
subscribe
My under-engineered way to avoid a Flash of inAccurate coloR Theme (FART)
https://chriskirknielsen.com/blog/my-under-engineered-way-to-avoid-a-flash-of-inaccurate-color-theme/
links
backlinks
I’m still seeing some folks use ways to restore a user’s selected theme on websites that are, in my eyes, too complex. Cookies and headers? Delayed render? Edge functions? Nah, I’m too lazy for that. One line of JavaScript in the <head>: