is there an easy way to add subdomains to the URLs of my static assets (JS, CSS, images) in Magento? What I am looking for is a way to change an url like this
http://store.com/js/script.js
to this
http://static1.store.com/js/script.js
The number behind 'static' should be rand(1,3).
The reason I want that is of course performance. By spreading assets over several domains browsers load them faster since they are restricted to load not more than 2 files from one domain at a time.
I know there exists a plugin for Wordpress and I would like to do it for Magento.
This whole thing has to happen server side, so before any html is generated.
Thank you for your input!