springuser2014 / wro4j

Automatically exported from code.google.com/p/wro4j
0 stars 0 forks source link

CssDataUriPreProcessor should detect duplicate uri's #141

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
Data urls are nice, it saves some http request. But if in your CSS you have two 
urls to the same file, those two urls will be replaced by the same data url and 
increase unnecessary a lot the css file size. So we have to be prudent with it 

What is the expected output? What do you see instead?
Instead of replacing a url blindly with dataUri, the processor should be smart 
enough to detect duplicated url and avoid replacing it with dataUri.

Original issue reported on code.google.com by alex.obj...@gmail.com on 3 Nov 2010 at 11:11

GoogleCodeExporter commented 9 years ago
Created the DuplicatesAwareCssDataUriPreProcessor. 

Original comment by alex.obj...@gmail.com on 19 Feb 2011 at 1:51