Last modified: 2014-06-06 04:05:31 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T25045, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 23045 - Add option to put "served in 0.344 seconds" message in footer, rather than as HTML comment
Add option to put "served in 0.344 seconds" message in footer, rather than as...
Status: RESOLVED WORKSFORME
Product: MediaWiki
Classification: Unclassified
Parser (Other open bugs)
unspecified
All All
: Low enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-04-04 23:19 UTC by Mike.lifeguard
Modified: 2014-06-06 04:05 UTC (History)
4 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Mike.lifeguard 2010-04-04 23:19:40 UTC
Like it says on the tin.

This is useful for people who like having such things in their footers. More importantly, it might be useful when tweaking performance settings so you don't have to constantly open the page source and sift through the HTML.
Comment 1 MZMcBride 2010-04-04 23:32:22 UTC
Dynamic content in the footer seems like it would do bad things to cache. This also seems like a feature that would get very little use and might be better served as a live hack for sites wanting it (especially if its use will only be temporary and be only by users who are already tweaking performance).
Comment 2 Mike.lifeguard 2010-04-04 23:36:16 UTC
(In reply to comment #1)
> Dynamic content in the footer seems like it would do bad things to cache.

It is in the HTML one way or another - how does it matter whether it is visible or not?
Comment 3 Chad H. 2010-04-05 12:08:58 UTC
It's not a caching issue, but I really don't see the need.
Comment 4 Platonides 2011-05-15 00:13:15 UTC
It's easy to do with a little of javascript. I don't think it's really worth putting in the page.
See http://es.wikipedia.org/wiki/Usuario:Platonides/tiempos.js as an example (it replaces the logout link with that info).
Comment 5 Krinkle 2014-06-06 04:05:23 UTC
During development this can be displayed in the (much more advanced) Debug toolbar via $wgDebugToolbar.

In production, this HTML comment is now a javascript variable that can be accessed to your liking from mw.config (without hacking around with comment nodes in the DOM).

mw.config.set({"wgBackendResponseTime":223,"wgHostname":"mw1217"});


I agree with Chad and don't see a need for implementing a way to display just the response time somewhere visibly rendered in the page HTML.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links