borismus/srcset-polyfill

Feature detection

appsforartists opened this issue · 0 comments

From your README:

How to reliably check for srcset support in the browser (so as to not attempt to polyfill if it's not necessary?)

According to Modernizr/Modernizr#1448 (comment), you can detect img.sizes to see if the current draft is supported.