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?

25

u/dudeatwork Aug 22 '18

I'm using it in a production site. Browser support is good - https://caniuse.com/#feat=matchmedia - goes back to IE 10.

1

u/monkh Aug 23 '18

MDN listed android browser, chrome for android and Samsung browser as unknown.

Guess they need to update that.