Reputation: 3020
I'm using a template system for my website (XML/XSLT). This system will output the generated HTML in one piece after it has done all its work. This leads to a behaviour that a browser will only start downloading all the content after all the HTML is generated. On some pages this is after 1s or more.
Now, I would like to try to speed this up and let the browser download the css/js files (and maybe an image sprite) before all the work is done.
I obviously can't send the whole head section directly since the title, keywords and description are different for each page and only sending part of the head section does not seem to work.
Does anyone have a suggestion how to do this?
I'm using apache and php.
Upvotes: 0
Views: 280
Reputation: 21856
You have virtually no control how a browser download things needed to render a page. It depends on browser implementation.
There is a nice option in chrome that displays the timeline of stuff downloaded. Here is a example of how stackoverflow is build:
Upvotes: 1