Page MenuHomePhabricator

Table of contents reflows when loading
Open, MediumPublic

Description

The table of contents when loaded on https://en.m.wikipedia.org/wiki/Hollis_Township,_Peoria_County,_Illinois causes the first heading to jump down like so:

This is a performance issue as it requires an unnecessary re-rendering of the entire page layout and can be a nuisance to users by impacting scroll behaviour position.

Luckily it should be relatively straightforward to address.

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald TranscriptNov 25 2020, 8:06 PM

Change 643542 had a related patch set uploaded (by Jdlrobson; owner: Jdlrobson):
[mediawiki/skins/MinervaNeue@master] Table of contents should not trigger reflows in layout

https://gerrit.wikimedia.org/r/643542

Test wiki created on Patch Demo by GDubuc (WMF) using patch(es) linked to this task:

http://patchdemo.wmflabs.org/wikis/cc7c44b42093adb07e8c5c3a34aeab1c/w/

Jdlrobson moved this task from Incoming to Needs Prioritization on the Readers-Web-Backlog board.
ovasileva triaged this task as Medium priority.Jan 18 2021, 10:31 PM

Test wiki created on Patch Demo by GDubuc (WMF) using patch(es) linked to this task:

http://patchdemo.wmflabs.org/wikis/ddbe31f407db16214ed56e1451e11c0a/w/

Jdlrobson updated the task description. (Show Details)Tue, Feb 2, 8:56 PM
Jdlrobson updated the task description. (Show Details)