I want to serve my css and images from a static cookieless domain. Now my problem is how to point to images from my css files.
I do not want to program my domain in a css file, for example:
http://static.com/image.png
I would rather have a variable pointing to the image, so it works for every static domain that I use.
What is the best way to achieve this. Should I run the entire css file via php and add a static domain before all png links. The disadvantage of this is that I have to put all the CSS in html.
Or there is another optimized way to do this.
source share