Re:Responsive Design is Not About Screen Sizes Any More
by cheapsteak on Wednesday September 11, 2013 @11:52AM
(#6367928)
You can do it client side with matchMedia.
Instead of setting `display: none` with CSS media queries, make a function to rip out elements with a class like `onlyBig` from the DOM, or better yet, use client side templates and only inject the DOM elements appropriate for that screen to start with.
Instead of setting `display: none` with CSS media queries, make a function to rip out elements with a class like `onlyBig` from the DOM, or better yet, use client side templates and only inject the DOM elements appropriate for that screen to start with.