mediawiki.hidpi: Add skipFunction to forgo loading in modern browsers
authorTimo Tijhof <krinklemail@gmail.com>
Wed, 16 Jul 2014 02:19:04 +0000 (04:19 +0200)
committerReedy <reedy@wikimedia.org>
Wed, 16 Jul 2014 17:22:28 +0000 (17:22 +0000)
commit71f54b25f08ed2ec8e9f1058c5e7ad0a99a5f8ee
tree961a4d5baedecc57de85f74d582cbd64dd4d2f79
parent599c5504295409f14026908683ae42c1e6a83ff0
mediawiki.hidpi: Add skipFunction to forgo loading in modern browsers

Chromium 34 (stable release April 8, 2014) introduced support
for the srcset attribute.

Chroem 34+ and Opera 21+ support this now. While the jquery.hidpi
module doesn't emulate srcset in browser that support it, we do
still load it.

http://blog.chromium.org/2014/02/chrome-34-responsive-images-and_9316.html
http://googlechromereleases.blogspot.com/2014/04/stable-channel-update.html
http://caniuse.com/srcset

Change-Id: I0498c9cc0f25e3d366879d9d3430ee8371efcf11
resources/Resources.php
resources/src/mediawiki.hidpi-skip.js [new file with mode: 0644]