Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: