The “Responsive Content”:http://stephanfowler.github.com/responsive-content/ jQuery plugin is an approach which works in a “coarse grained” way, ajax-loading an entire HTML fragment into the page, given current window width (and pixel density). It can be used to tell the server to supply appropriately sized image src URLs etc.
It’s a fork of Github’s Pjax loader. It does not rely on User Agent or cookies – just window width.
Copy & paste the code below to embed this comment.
DanMcRae
How do would you appreciate these 2 solutions to download only the small images when needed (Smartphone, iPhone, Android)
1) Use $_SERVER(‘HTTP_USER_AGENT’) in the server script to detect that it is not a PC
2) Have a main page that detects the screen size and pass it in the URI for subsequent pages.
75 Reader Comments
Back to the Articlelerouxb
What do you think of my responsive images proposal?
http://opensores.za.net/2012/responsive-images/
stephanfowler
The “Responsive Content”:http://stephanfowler.github.com/responsive-content/ jQuery plugin is an approach which works in a “coarse grained” way, ajax-loading an entire HTML fragment into the page, given current window width (and pixel density). It can be used to tell the server to supply appropriately sized image src URLs etc.
It’s a fork of Github’s Pjax loader. It does not rely on User Agent or cookies – just window width.
stephanfowler
Correstion. Correct url:
http://responsivecontent.net/
Jessica Wilson
But, Do I Need Responsive Website For Growth of My Business?
DanMcRae
How do would you appreciate these 2 solutions to download only the small images when needed (Smartphone, iPhone, Android)
1) Use $_SERVER(‘HTTP_USER_AGENT’) in the server script to detect that it is not a PC
2) Have a main page that detects the screen size and pass it in the URI for subsequent pages.