Posts by Jp_ • 109 points
1 post
-
0
votes4
answers2632
viewsA: What is the equivalent of CSS media queries in Javascript?
I believe the recommended solution is to add a Event Listener at the MediaQueryList as explained on the page https://developer.mozilla.org/en-US/docs/Web/API/MediaQueryList/addListener var mql =…