Page MenuHomePhabricator

[GOAL] Mobile should should have a way of predicting how much performance impact code changes have before they reach production
Closed, ResolvedPublic

Description

The mobile web team is keen to explore changes that impact the HTML of articles for example but not conclusively: Lazy loading images; stripping unused HTML from page; dynamic loading HTML from page; using Parsoid as a backend.

We need some way to measure these sorts of changes in a stable environment before they go to production.

A way forward should be:

  • Setup synthetic testing (meaning real browsers testing in a controlled environment) that can access the environment.
  • It should be easy to test many URL:s (crawl or feed with a list of URL:s)
  • Collect and graph the data automatically, so we easy can see and show the difference between changes.
  • Each change we do that needs to be tested should have an easy way to turn on/off the change

A realistic first goal should be to emulate mobile browsers using desktop but in the long run our goal should be to use real devices..

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 Goals on the Reading-Web-Planning board.

What kind of performance gain are we talking about? Do we have specific metrics we want to measure? I suppose it will be hard to compare qualitative metrics to quantitative metrics. For example, lazy loading images will result in a page without images if the internet connection is lost. However we can gain, say 2 seconds faster page load by doing this. Now how do we compare the loss of offline images to the 2 second page load gain?

• Peter renamed this task from [GOAL] Mobile should be able to make radical changes to its HTML and measure the performance gain to [GOAL] Mobile should should have a way of predicting how much performance impact code changes have before they reach production.Sep 17 2015, 5:20 PM
• Peter updated the task description. (Show Details)
• Peter set Security to None.
• Peter removed a subscriber: Peter.Hedenskog.

Really we're looking at first paint and load time here. In the images example we may want to factor in some kind of metric around "time user waits to see images". In theory though if an internet connection is lost, a faster page load is probably preferred... to a certain point. If we are talking a removal of for example 20 seconds on load load which our Barack Obama tests on 2G have suggested that's probably a necessary trade off.

It's important we can articulate what the trade-offs are accurately as part of our decision.