r/javascript • u/[deleted] • 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
r/javascript • u/[deleted] • Aug 21 '18
45
u/SalemBeats Aug 22 '18
This is one of those things that, when someone brings it up, I think "yeah, I was aware of that". But it's still so obscure that it never comes to mind in the few situations it would actually be useful.