I visited the homepages of the 14.8 million sites in Google's Chrome UX Report in October.

I thought jQuery would be dead, but it's still on 53.7% of sites, and it seems to be tied quite tightly to the platform. Webflow puts it on 97.6% of its sites, WordPress on 84.9%. For contrast, React is on 10.6% of sites.

jQuery helped me get into web development, and I guess it still gets the job done even if redundant with browser standards these days...

jQuery is loaded on 97.6% of Webflow websites
you are viewing a single comment's thread
view the rest of the comments
[–] 1 point 2 days ago

<meta name="color-scheme" content="dark light" /> in the <head>, then the browsers defaults already provide dark mode defaults. If you overwrite with your own color scheme, use light-dark(#fff, #000) (obviously, you can use variables too) to define a color with light and dark variants in-place.

So, no explicit toggle. Just respect my browser/system defaults.

(It's not really visible because of the inline code coloring, but I linked the MDN docs on both.)

  • source
  • parent