srcset-polyfill
srcset-polyfill copied to clipboard
[Warning: not for production code]
Hi. Please change settings for this project to archived to better show that is is not maintained and is stale
I could not find any references to the included jsuri. I would remove it. Or do you plan on falling back to it in the future or for any planned...
Among: - global `srcset` object - update all images at once: `srcset.update()` - update one image at a time: `srcset.imgs.get().update()` - a `'srcchanged'` event dispatched on the `` when changing...
It looks like this polyfill implements the old spec for srcset, where 'w' descriptors meant viewport max-width. The current spec makes 'w' descriptors mean width of the image, to be...
License?
What license is this code offered under? I did not see a license mentioned in the readme. Thanks!
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...
I'm not sure, but it appears that parsing `srcset=', 2x'` should return the url ","?
sorry forgot this typo
Now it works in more browsers (slice(-1)). Also working on making R.js module based on it with change that it uses container width instead of window width so targetting is...
This would add a resize event to update images based in the current window size. One possible optimization: Don't call main() on every resize but only after a timeout, so...