BTW, it seems that a certain mobile phone manufacturer wasn't quite
ready for this ;)
According to the researchers, the problem is caused by the srcset HTML
attribute, which indicates the size and resolution of images a browser
should pick based on the device’s screen size and magnification
The Galaxy S3’s browser, however, has a bug that makes it download all
the images specified in the srcset HTML attribute instead of the ones
it needs, resulting in long load times and lots of data usage. For
instance, the researchers loaded a Wikipedia page that was only 600 KB
when browsed using Internet Explorer, but the page’s size inflated to
a whopping 2.1 MB on the Galaxy S3.
“This bug significantly affects the Wikipedia performance on 3G were
these massive number of requests for image downloads overwhelmed the
network and ended up timing out rendering an incomplete page,” the
research paper reads.
On Thu, Sep 27, 2012 at 3:45 PM, Brion Vibber <brion(a)pobox.com> wrote:
On Sun, Sep 23, 2012 at 7:59 PM, Brion Vibber
I've updated the patch to use the
'srcset' attribute as defined in the
current HTML 5 working group version, only using the density options and
not the width/height options:
Patch in gerrit:
Patch has been updated to:
* include QUnit tests for the srcset matching
* match "next-highest density" if there's not an exact match available
This latter fixes Opera Mobile on my Galaxy Nexus (where devicePixelRatio
reports 2.25 rather than the expected 2) and BlackBerry 10 developer alpha
device (where it reports slightly less than 2.25). Should help with some
other funky configurations where a non-integral zoom is reported as well.
Currently Firefox for Android doesn't report window.devicePixelRatio, I may
add another special case, should be able to use media queries.
Opera Mobile works, but Opera Mini does not -- at least because we don't
serve it jQuery etc. :)
You can see a live demo of this patch in action on these test articles:
Mobile browsers won't automatically switch to mobile view on this wiki
currently, so hit the 'mobile view' link manually to switch in.
Wikitech-l mailing list
Senior Operations Analyst (Movement Communications)
IRC (Freenode): HaeB