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

1

u/cbung Aug 22 '18

Very neat, last thing I used a while back for this was jRespond (https://github.com/ten1seven/jRespond)