kuma icon indicating copy to clipboard operation
kuma copied to clipboard

E - Assess getting lighthouse performance score to 95 (mobile)

Open chinikes opened this issue 4 years ago • 5 comments

Epic

Assess getting lighthouse performance score to 95 (mobile)

Acceptance criteria

chinikes avatar Mar 30 '20 12:03 chinikes

Note-to-those-with-access: https://search.google.com/search-console/speed?resource_id=https%3A%2F%2Fdeveloper.mozilla.org%2F

peterbe avatar Apr 17 '20 13:04 peterbe

Also, a sample report: https://developers.google.com/speed/pagespeed/insights/?url=https%3A%2F%2Fdeveloper.mozilla.org%2Fen-US%2Fdocs%2FWeb%2FAPI%2FFileList

peterbe avatar Apr 17 '20 13:04 peterbe

Notes:

Google Search Console: https://search.google.com/search-console/speed/summary?resource_id=https%3A%2F%2Fdeveloper.mozilla.org%2F&device=2&hl=en

Speedcurve: https://speedcurve.com/mozilla-add-ons/mdn/favorite/?cs=lg&d=7&db=17534&dc=1&de=1&ds=1 in 'options' you can emulate a older phone, like Nexus6 and see that it performs significantly slower.

Page for testing Array.prototype.forEach() is the recommended page for testing.

Simulate a slow CPU on mobile.

UserStories:

  1. report list of possible changes that would have an effect on perf
  2. define effort of each possible effect

tobinmori avatar Apr 17 '20 14:04 tobinmori

  1. report list of possible changes that would have an effect on perf

some ideas on tasks...

  • LIST all the possible things you want to hypothesis test (e.g. lazy load bcd-signal.js, minimize CSS, inline CSS, lazy-load sidebar, reduce react bundle, switch to preat, etc. etc.)
  • Download a page like https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/forEach so it works 100% on its own so it doesn't depend on kuma.
  • Figure out a basic framework for running Lighthouse against a page you can edit. And re-run easily to be able to write down the quantitative effects of changes.
  • Ability to do ^^ but do it on a remote network via a CDN.

peterbe avatar Apr 17 '20 14:04 peterbe

Report is here:

https://github.com/mdn/kuma/issues/6934#issuecomment-622497603

tobinmori avatar Jun 22 '20 14:06 tobinmori