DEV Community

Discussion on: Add Dark Mode to your Websites with CSS

Collapse
 
icidel profile image
del65

I think loading jQuery is overkill to only keep a single value in a cookie or local storage.

I prefer to stay as close to W3C standards as possible : most of the time a commented code snippet can do the job as well, and greatly reduce potential security flaws versus any library.