A CodePen by Adrian Redman. Matching CSS width with JS widths - <strong>Turns out having hundreds of media queries really slows a page down! Beware!</strong>

Testing various javascript techniques for getting window width to compliment css media queries. Scale the window around and watch what happens.<br /><code>screen.width</code> is included for testing on mobile devices which <a href="stackoverflow.com/questions/6850164/get-the-device-width-in-javascript">apparently have difficulty with window.innerWidth</a>.<br />Keep an eye on <code>$(window).width();</code> when scrollbars show up.<br />You can also <a href="http://marblegravy.com/blog/" >read my blog post about this</a>.