srcset-polyfill icon indicating copy to clipboard operation
srcset-polyfill copied to clipboard

Feature detection

Open appsforartists opened this issue 11 years ago • 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 https://github.com/Modernizr/Modernizr/issues/1448#issuecomment-60028819, you can detect img.sizes to see if the current draft is supported.

appsforartists avatar Nov 04 '14 21:11 appsforartists