How do I prevent useless content load on the page in responsive design?

Posted by Ícaro Leandro on Programmers See other posts from Programmers or by Ícaro Leandro
Published on 2012-03-29T12:51:38Z Indexed on 2012/03/29 23:40 UTC
Read the original article Hit count: 302

Filed under:
|
|
|

In responsive design, elements are hidden in the page with @media queries and display: none in CSS.

Ok.

In my design however browsers that have less than 800px in width should avoid loading some content at all.

When accessed with on a device with more than 800px of screen, the page loads fully. In mobile devices or even on desktop with less than 800px of width some content is hidden.

I want to make the page load faster for low-resolution devices and avoid loading chunks of content that the user will never see. How can I go about this?

© Programmers or respective owner

Related posts about php

Related posts about JavaScript