Sumit added a comment.

It seems that using javascript together with srcset is a difficulty in itself 
because I'm unable to see how to determine the image rendered by srcset. The 
property **currentSrc** is experimental and works correctly only on chrome. See 
https://developer.mozilla.org/en/docs/Web/API/HTMLImageElement . Without 
determining which size banner-image has loaded, its impossible to 
**selectively** use javascript to load a proper-size image. Should user-agents 
be used to decide for **selective usage** of javascript to serve banners, since 
we have a fair idea of which browsers support "srcset" and which don't?


TASK DETAIL
  https://phabricator.wikimedia.org/T106523

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Sumit
Cc: Jdlrobson, Sumit, Aklapper, Wikidata-bugs, Lydia_Pintscher, Malyacko, P.Copp



_______________________________________________
Wikidata-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs

Reply via email to