Hi all,
as you can see in the commit history - you can replace image urls within
CSS files loaded with a CssResourceReference by their corresponding
wicket url representation, so that images are resolved from within the
class path. (currently with 7.0.0-SNAPSHOT)
I'm thinking of improve the concept a bit more so that you are able to
store base64 encoded content in css dynamically - and it would look like
this:
background-image:url(data:image/gif;base64,R0lGODlhEAAQAMQAAORH.........);
With this option you would be able to save some requests by loading
small images directly within the CSS file.
I think it would be good to do it by this way:
background-image:url(myimage.gif) - myimage.gif will be replaced by the
URL of the resource within the package of the scope with style and variation
background-image:url(myimage.gif?embeddBase64) - myimage.gif will be
replaced by the base64 encoded content received from the resource within
the package of the scope with style and variation
What do you think about that idea?
kind regards
Tobias