Fixing high-ish TTFB (Time To First Byte)

Hello,

The issue: Oxid parses requests and, using Smarty, spits out whole HTML at once.
That’s why browsers have to [B]wait[/B] for a (in my case) second, for every page to start rendering, while they could be already getting css/js/images at that time.

How could I make Oxid/Smarty send template-irrelevant information (the very head of HTML with just css/js) before it generates a full page, so the overall pageload time would decrease?

I would think ‘send head of html instantly’ should be executed on oxshopcontrol matching some classes (i.e. start page, product page etc.) as shop is monolingual.

Any help would be highly appreciated :slight_smile:

Hi,

Great idea, but this is nearly unpossible because of the smarty-function oxscript and oxstyle. The Functions are collecting all css- and js-files to output them at the right place.

Best Joscha