DEV Community

Andrew Jackson
Andrew Jackson

Posted on

Query Mind Blown

Welp mind was blown with matchMedia in #javascript. Three years in and this is the first time actually seeing this. https://developer.mozilla.org/en-US/docs/Web/API/Window/matchMedia

Why don't more people talk about it?

Top comments (2)

Collapse
 
jonathanburnhill profile image
Jonathan Burnhill

I've seen it about, but not played with it .

It looks exciting what uses spring to mind for you to use it?

Collapse
 
sonandrew profile image
Andrew Jackson

It looks like it could be a functional way to add in media queries without the humbug of media queries.