Re: How responsive is responsive?

On Wednesday, October 3, 2012 at 5:37 PM, Brett Jankord wrote:

> Hi Macros,
> 
> I believe the element would stay responsive "for life". In your example, "As I move my device from one orientation to another, does the picture's content change? " 
> 
> The picture content would change, though there needs to be some logic probably provided by the browser vendors to load images from the cache if the image has already been loaded instead of sending another http request. 
> 
> Using your example, "what should happen when the user swaps from landscape, to portrait, and back to landscape again?" 
> 
> The browser would load the image initially requested in landscape orientation, upon orientation change to portrait the browser would request the new img src for that source tag, upon the user going back to landscape orientation, the browser would load the landscape image from the browser cache instead of sending another request to the server. This is my understanding from discussions in the community group. I believe a lot of it depends on if its possible for browser vendors to do something like this. 
> 


The above is my understanding too. Browsers already support this with media queries. Also, this is currently how the picture polyfill works: 

http://scottjehl.github.com/picturefill/

(though I'm seeing an issue in Chrome where large.jpg keeps getting re-requested?) 

Just making sure we are all on the same page. 

Received on Wednesday, 3 October 2012 16:47:08 UTC