CSS-JS-Booster icon indicating copy to clipboard operation
CSS-JS-Booster copied to clipboard

[ENHANCEMENT] Datauris ignore file

Open vvo opened this issue 15 years ago • 1 comments

Problem : You have a 404 page with a very large background (but < 24ko), jpg style You have 2 css files : core + template. You use css js booster to merge, minify and data uri your code. Then the large background is data uried and you have a BIG css file.

Solution : When calling css markup, if we could provide a ignore file with on each line some characters like :

404
big
big_image

Then when css js booster parses the CSS file, when he find an image he wants to data uri, it has to check if the image uri does not contain one of the keywords of the ignore file

This could be an ignore file but an array or a string can do the work too.

I know this sounds a weird idea and that could be solved by making a css file only for the 404 page, then you lost the merging benefits.

What do you think ?

vvo avatar Aug 09 '10 09:08 vvo

I'm working on this, btw

vvo avatar Aug 09 '10 10:08 vvo