2 ms·
So with server side rendered code you can render in dark mode and send that back in the html markup of the request -- no latency on seeing the style applied. Y
by darepublic 7y ago
So with server side rendered code you can render in dark mode and send that back in the html markup of the request -- no latency on seeing the style applied. You don't need to just store the user preference locally and apply it with js. You can even store the user preference on the server as part of their profile (:o) and then NEW browsers will get the dark or light mode styling. If I am very wrong let me know but I still think it is new web devs getting lost in a wilderness of frameworks and not realizing that the escape from the haunted forest is just to walk north for ten paces, because they lack a basic compass.
- robertoandred 7y agoDoubt users are going to want to create a profile for a random website just to save their color mode preference.