r/javascript • • Aug 21 '18

Effectively supported in all browsers, JavaScript has its own form of media queries just like CSS.

https://developer.mozilla.org/en-US/docs/Web/API/Window/matchMedia
465 Upvotes

114 comments sorted by

View all comments

17

u/occsceo Aug 21 '18

wait...wait...wait. how new is this? anyone have this running in a production app?

2

u/Canowyrms Aug 22 '18

I used it a year and a half ago on a production site. The site is no longer live though. Browser support back then sufficed for that project.