forked from friendica/friendica-addons
Improve accessibility with showmore and rendertime #1600
This commit is contained in:
parent
99f26dc3cc
commit
a37f313990
2 changed files with 4 additions and 4 deletions
|
@ -60,7 +60,7 @@ function rendertime_page_end(string &$o)
|
|||
|
||||
if (DI::userSession()->isSiteAdmin() && (($_GET['mode'] ?? '') != 'minimal') && !DI::mode()->isMobile() && !DI::mode()->isMobile() && !$ignored) {
|
||||
|
||||
$o = $o . '<div class="renderinfo">' . DI::l10n()->t("Database: %s/%s, Network: %s, Rendering: %s, Session: %s, I/O: %s, Other: %s, Total: %s",
|
||||
$o = $o . '<div class="renderinfo" aria-hidden="true">' . DI::l10n()->t("Database: %s/%s, Network: %s, Rendering: %s, Session: %s, I/O: %s, Other: %s, Total: %s",
|
||||
round($profiler->get('database') - $profiler->get('database_write'), 3),
|
||||
round($profiler->get('database_write'), 3),
|
||||
round($profiler->get('network'), 2),
|
||||
|
@ -77,7 +77,7 @@ function rendertime_page_end(string &$o)
|
|||
|
||||
$total = microtime(true) - $profiler->get('start');
|
||||
$rest = $total - ($profiler->get('ready') - $profiler->get('start')) - $profiler->get('init') - $profiler->get('content');
|
||||
$o = $o . '<div class="renderinfo">' . DI::l10n()->t("Class-Init: %s, Boot: %s, Init: %s, Content: %s, Other: %s, Total: %s",
|
||||
$o = $o . '<div class="renderinfo" aria-hidden="true">' . DI::l10n()->t("Class-Init: %s, Boot: %s, Init: %s, Content: %s, Other: %s, Total: %s",
|
||||
round($profiler->get('classinit') - $profiler->get('start'), 3),
|
||||
round($profiler->get('ready') - $profiler->get('classinit'), 3),
|
||||
round($profiler->get('init'), 3),
|
||||
|
@ -87,7 +87,7 @@ function rendertime_page_end(string &$o)
|
|||
) . '</div>';
|
||||
|
||||
if ($profiler->isRendertime()) {
|
||||
$o .= '<pre>';
|
||||
$o .= '<pre aria-hidden="true">';
|
||||
$o .= $profiler->getRendertimeString(floatval(DI::config()->get('rendertime', 'minimal_time', 0)));
|
||||
$o .= '</pre>';
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue