Page MenuHomePhabricator

Delay loading of article content post lead section
Closed, DuplicatePublic

Description

We should collect data to support this but we believe based on previous experiments and just watching people use MobileFrontend that many people do not read post the lead section.
Despite this we load a high amount of content that follows.

We thus propose rendering lead section and section headings in alpha.

  • If you have JavaScript, content post the lead section will only be loaded when you click to toggle open the a section. This will introduce a slight delay and we must determine whether this is acceptable. All sections will be loaded in this action but only rendered if toggled open.
  • Rewrite toggle code and replace with Section rendering.
  • We will need a fallback link that supplies query string parameter show=all so that non JS users can still read the full page content (uncollapsed)
  • We will need to bind an event to the Page that modules can subscribe to to enable things such as references / media viewer
  • using event logging / other thing to measure assumption that most content is not loaded

Event Timeline

Jdlrobson raised the priority of this task from to Needs Triage.
Jdlrobson updated the task description. (Show Details)
Jdlrobson moved this task to Should have on the MobileFrontend-Feature-requests board.
Jdlrobson added subscribers: Jdlrobson, phuedx.

Initial scope:

  • Only the lead section, i.e. text before the first header, is sent to the client
    • The search bar is sent
    • The primary actions are sent
  • There's a "Read more…" button at the bottom of the screen, which loads the rest of the page
  • Clicking a reference in the lead section will also load the rest of the page but not render it so that the references draw can be rendered properly

$ billz y'all