[Vtigercrm-developers] flush after sending <head>

Alan Bell alan.bell at libertus.co.uk
Thu Jul 17 17:01:26 GMT 2014


I think a few more milliseconds of responsiveness can be achieved by editing
layout/vlayout/modules/Vtiger/Header.tpl

and after </head> insert:

{php}
flush();
{/php}

the intention of this is to  fling the head part to the browser, so it 
can start loading the various js and css files from cache or if they 
have to be requested before the rest of the page arrives. It seems to 
improve things a touch, but not as much as I had hoped, there is still 
quite a big delay before sending anything to the browser, this just 
saves .02 seconds for my testing.

Alan.

-- 
Libertus Solutions
http://libertus.co.uk



More information about the vtigercrm-developers mailing list