https://bugzilla.wikimedia.org/show_bug.cgi?id=43846

--- Comment #5 from Brion Vibber <[email protected]> ---
Looking at a couple of pages, the size difference is indeed relatively small
once compressed:

http://cs.wikipedia.org/wiki/Seznam_m%C4%9Bn
-rw-r--r--  1 brion  staff   239K Dec 23 15:06 seznam.html
-rw-r--r--  1 brion  staff    32K Jan 10 16:46 seznam.html.gz

with 200+ 'srcset' attributes removed:
-rw-r--r--@ 1 brion  staff   181K Jan 10 16:46 seznam-nosrc.html
-rw-r--r--  1 brion  staff    27K Jan 10 16:46 seznam-nosrc.html.gz

Only 5kb difference in the transfer amount; this will be by far dwarfed by the
actual images.


Rather than a preference exactly as requested, I'd recommend considering a
combination of:

Reduce unnecessary image payload:
* something like bug 32138 to avoid loading images that aren't onscreen

Make image payload size switchable:
* client-side option to disable the use of srcset for people on high-resolution
displays but metered connections (think iPhone or Android or iPad on a 2g or 3g
connection with a hard limit)

Reduce unnecessary HTML payload:
* load sections separately, as we're starting to on mobile... ??
* cleaner naming conventions to avoid having to output 3 full URLs in every
<img>
** (eg if we have @1.5x and @2x suffixes, we could add the 'srcset' or set
'src' at runtime from JS, without having to store any of the common)
** this would only save 1kb or so on most pages, but it adds up eh

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.
You are watching all bug changes.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to