Clever... that technique (loading a data URI of a small file and making sure it works) should work with other formats too. I smell an avenue for SVG support too here... ;)
-- brion
On Mon, Apr 22, 2013 at 12:33 PM, Mathias Schindler < mathias.schindler@gmail.com> wrote:
On Mon, Apr 22, 2013 at 8:27 PM, Brion Vibber brion@pobox.com wrote:
Another possibility is to preferably load images on view/section
expansion
via JavaScript, which can potentially give you a chance to query the
format
compatibility in client JS and avoid any HTTP-level negotiation. (And
also
doesn't load any images until you need them.) Things to think about...
format compatibility check is usually done with these few lines: http://queryj.wordpress.com/2012/06/11/detecting-webp-support/
Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l