Skip to content

tbela99/server-timing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HTML(5) Server Timing API

HTML(5) Server Timing API

This Joomla plugin enable Server Timing HTTP headers. See https://w3c.github.io/server-timing/

It help you track performance of your website in the browser console supported by google chrome

This plugin must run as the last plugin in system group. You need to reorder plugins and put it as the last

You may also like

How to use it

Use the global Joomla profiler to profile you code

    $profiler = JProfiler::getInstance('Application');

    // profile sections of your code    
    $profiler->mark('afterParseImages');
    $body = Gzip\GZipHelper::parseCss($body, $options);

    $profiler->mark('afterParseCss');
    $body = Gzip\GZipHelper::parseScripts($body, $options);
    
    $profiler->mark('afterParseScripts');
    $body = Gzip\GZipHelper::parseURLs($body, $options);

    $profiler->mark('afterParseURLs');
    

Open the google chrome console and navigate to the network tab. Click on your page request. Click the timing tab. You will see the result.

screen capture

Releases

No releases published

Packages

No packages published

Languages