Using JavaScript, what would be the best way to display a list containing all the media queries that apply to the current page.
I assume that this will be necessary for filtering in order to find the embedded media queries, i.e.
<link rel="stylesheet" media="only screen and (min-width: 30em)" href="/css/30em.css">
as well as media queries located in CSS files, i.e.
@media only screen and (min-width: 320px) {}
An example of the output of what I'm looking for:
<p>There are 3 media queries loaded on this page</p> <ol> <li>30em</li> <li>40em</li> <li>960px</li> </ol>
javascript jquery responsive-design media-queries
Alecrust
source share