Re: How responsive is responsive?

Following on… The WHATWG Responsive Images proposal currently makes the "responsive" aspect completely optional:   

"The user agent may at any time run the following algorithm to update an img element's image in order to react to changes in the environment. (User agents are not required to ever run this algorithm.)"

While what the RICG is proposing is that the responsive algorithm always runs and always responds to the environment (like CSS Media Queries do).  

Is the above correct?  



--  
Marcos Caceres


On Wednesday, October 3, 2012 at 5:46 PM, Marcos Caceres wrote:

>  
>  
>  
> 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 17:07:30 UTC