DEV Community


Discussion on: Implement Dark Mode On Your Website.

mattmarquise profile image
Matthew Marquise Author

Good point. However for this demo I wanted to keep it simple. For those who are into JS and have more than one function set for onload, they should understand how it works. But eventlistener is a great alternative.