Moe Chizari

Projects

The write-up

Interactive demo, added

Analyzing Problems and Solutions 3/4: try it.

Rank fixes for the five Lighthouse metrics with a weighted decision matrix: move the weights and the order changes. Made-up scores.

Try it

Move the controls; the chart and the sentence under it update.

012345Weighted score (0 to 5)1. LCP: largest imageLCP: compress, resize and preload the largest image: 4.33 (impact 5, ease 3, AI 4)4.32. CLS: image sizesCLS: set a fixed width and height on images: 4.00 (impact 3, ease 5, AI 5)4.03. FCP: CSS sizeFCP: minify CSS and remove unused styles: 3.50 (impact 3, ease 4, AI 4)3.54. TBT: long scriptsTBT: defer and split long JavaScript tasks: 3.33 (impact 4, ease 2, AI 3)3.35. INP: slow inputINP: break up slow input handlers (setTimeout, callbacks): 3.00 (impact 4, ease 2, AI 2)3.0
Problem and fixImpactEaseAI
LCP: compress, resize and preload the largest image534
CLS: set a fixed width and height on images355
FCP: minify CSS and remove unused styles344
TBT: defer and split long JavaScript tasks423
INP: break up slow input handlers (setTimeout, callbacks)422

Ranked first: LCP (“compress, resize and preload the largest image”), score 4.3 of 5. Second: CLS (4.0). Last: INP (3.0).

The 1-to-5 scores in the table are made-up examples to show the method, not measured results and not data from Lighthouse or the original project. The weighted score is the weighted average of the three scores.

The write-up this goes with: Analyzing Problems and Solutions 3/4.

All demos