Quickly show the php-rendertime of your Kirby page in the code, on the page or in the browser-tab.
More info - https://forum.getkirby.com/t/show-php-rendertime-on-page/2277
- Download the Plugin.
- Copy the downloaded folder in
site/pluginsof your site asrendertime/
Enable the plugin by adding the following variables in yout site/config/config.php file of your development environment:
c::set(array(
'rendertime' => true,
'rendertime.type' => 1,
'rendertime.format' => 'Page rendered in {totaltime} seconds @ {rendertime}',
));
Add RenderTime::start() in your header:
<?php RenderTime::start() ?>
<!DOCTYPE html>
...
And RenderTime::end() in your footer:
...
<?php RenderTime::end() ?>
</html>
Accepts several values (integer only):
1: Show rendertime in code3: Show rendertime in page5: Show rendertime on tab
You can also take the sum of these individual numbers;
- 1 and 3 =
4: This will show the rendertime in both pag and code - 1 and 5 =
6: This will show it in code and on tab - 1 and 3 and 5 =
9: This will show it all over the place - etc...