I'm wondering if anyone can give me their opinions on using Perl to dynamically generate CSS and Javascript for use in webpages. Obviously, on the plus side you have more control over code unique to a particular page. However, you lose the advantage of having your CSS and Javascript cached for fast loading. I've found making two more HTTP requests (one for CSS and one for Javascript) can seriously slow down page load times.
What experiences have you had with this technique? Maybe site-generic code should be loaded from a .css or .js file, whilst page-specific code should be generated on the fly? This still wouldn't address the fact that reloading any given page, its unique javascript or css would always need to be reloaded.