For casual users who only use the Wikipedia article to identify an image of the food they are looking up or get a brief overview of a subject, any content post the lead section is not useful. Let's defer load this until the user scrolls down the page.
This will dramatically increase the time it takes for the user to load a fully functional page.
To quote @Gilles on T97570:
"The Barack Obama article might be a bit of an extreme example due to its length, but in that case the API data needed for section 0's text + the list of sections is almost 30 times smaller than the data needed for all sections's text (5.9kb gzipped versus 173.8kb gzipped)."
We need to find a non-Js fallback for this.
Ideas:
- lite.wikipedia.org
- link to desktop
- mobileaction=fullsite - a mode which shows full content without js
For completeness such a change would require a method to render content on the client: https://gerrit.wikimedia.org/r/#/c/219489
and would also need a new api method for retrieving all sections other than the lead section: https://gerrit.wikimedia.org/r/#/c/219490 (copying Pythons array slice notation might be a good idea for parameters as this evolves).