Back during the offsite Joaquin got some numbers around article composition e.g. how much does just serving lead section reduce HTML from. What does this mean in terms of time to load?
It's important we get these recorded down at the very least for Barack Obama, but preferably for a wide variety of articles (I'd suggest taking the last 40 featured articles of the day- as these represent our best content).
Specifically:
- What % of total HTML is reference HTML.
- How does removing this impact first paint / first interactive / total load time.
- What % of total HTML is lead section HTML.
- How does removing this impact first paint / first interactive / total load time.
- How does removing images impact first paint / first interactive / total load time.
Note we have this data but as I understand it, it only relates to slim vs original and for the Barack Obama article. It would be useful to have similar data for other articles / less optimised Parsoid (one common question I get is why not just remove/downgrade quality of images for example).
I think this data is vital for the dev summit when having a discussion around defer loading content.
Feel free to divide and conquer this card.
Research notes in mediawiki.org: https://www.mediawiki.org/wiki/Reading/Web/Projects/A_frontend_powered_by_Parsoid/HTML_content_research
- Define approach
- Create endpoints (@phuedx)
- Create data gathering script (@Jhernandez)
- Gather data with initial list of articles (see appendix A for list)
- Visualize data to gather knowledge and insights
Appendix A
A company https://en.m.wikipedia.org/wiki/Nike,_Inc.
A movie https://en.m.wikipedia.org/wiki/Star_Wars:_The_Force_Awakens
A person https://en.m.wikipedia.org/wiki/Barack_Obama
A TV show https://en.wikipedia.org/wiki/Doctor_Who
A science article https://en.m.wikipedia.org/wiki/Geastrum_quadrifidum
An event https://en.m.wikipedia.org/wiki/Syrian_Civil_War
A city https://en.m.wikipedia.org/wiki//Oakland
A stub https://en.wikipedia.org/wiki/Campus_Honeymoon
A country https://en.wikipedia.org/wiki/Brazil