Page MenuHomePhabricator

Reduce Flow page time to first byte
Closed, ResolvedPublic

Description

Currently flow has to render every possible element on the page before output can begin. Investigate how we can output minimally the <head> and preferably the Header of the board as well before the load/render processing in TopicList.

AFAIK mediawiki cannot yet do this, OutputPage::output is a one-shot method outputing the head/skin/content/etc all at once, so unsure how to proceed

Details

Reference
bz61694

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 2:56 AM
bzimport set Reference to bz61694.
bzimport added a subscriber: Unknown Object (MLST).

Should this be closed? Or are there actions left?

Some notes:

  1. Browsers do stream-parse, which means as long as the HTML is fast to generate, the size of the HTML should not significantly slow down the initial rendering of the page since rendering can happen with just the first few chunks already.
  2. Given a Varnish hit, time to first byte should be low anyway.
  3. For logged-in users, most data should still be coming from caches. Expanding widgets should just be a matter of expanding (lots of) HTML templates, which should be cheap.
Krinkle updated the task description. (Show Details)
Krinkle moved this task from Inbox, needs triage to Radar on the Performance-Team board.
Krinkle removed a subscriber: wikibugs-l-list.
Krinkle renamed this task from Reduce time to first byte to Reduce Flow page time to first byte.Apr 5 2017, 6:47 PM

Browsing to https://www.mediawiki.org/wiki/Project:Support_desk when logged-in seems no longer than loading any other page logged-in. Marking this as resolved.