cdnizer icon indicating copy to clipboard operation
cdnizer copied to clipboard

Improve: doesn't work with srcset

Open bars3s opened this issue 10 years ago • 1 comments

Hi @OverZealous!

Found that cdnizer doesn't process srcset attributes. I think it will be very useful feature.

Thx!

bars3s avatar Nov 06 '15 12:11 bars3s

Yeah, that definitely looks useful. That being said, that's a lot of work to integrate: the current design uses a RegExp-based replacement strategy that expects a (before)(url)(after) format, while srcsets are a comma-separated list of values, each of which has to be processed individually.

I'll see if I can find some time to add it in the near future.

OverZealous avatar Nov 06 '15 15:11 OverZealous