Http Server Timing headers
Introduction
This Joomla plugin enable Server Timing HTTP headers. See https://w3c.github.io/server-timing/
HTML(5) Server Timing API
It help you track performance of your website in the browser console (supported by google chrome)[https://developers.google.com/web/tools/chrome-devtools/network-performance/understanding-resource-timing]
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
- Html minifier plugin
- Gzip website optimizer plugin
How to use it
Use the global Joomla profiler to profile you code
```php
$profiler = JProfiler::getInstance('Application');
// profile sections of your code
$profiler->mark('afterParseImages');
$body = GzipGZipHelper::parseCss($body, $options);
$profiler->mark('afterParseCss');
$body = GzipGZipHelper::parseScripts($body, $options);
$profiler->mark('afterParseScripts');
$body = GzipGZipHelper::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.
This extension will no longer be maintained. It has been superseeded by PWA Gzip extension https://extensions.joomla.org/extension/core-enhancements/performance/gzip/
Share