using chrome built-in tool lighthouse to analyze the performance and the best practice of our Todo-App and a Competitor todo-app
Performance of our Todo-App.
results from the lighthouse:
Device >>
Mobile
Desktop
Performance
99 %
100 %
First Contentful Paint
1.8s
0.5s
Speed Index
1.8s
0.5s
Largest Contentful Paint
1.8s
0.5s
Time of Interactive
2.0s
0.5s
Total Blocking Time
10ms
0ms
Cumulative Layout Shift
0.002
0.033
Passed audits
26
31
ScreenShots
Issues and Solutions:
the result is great and the 1 % left is because some Resources are blocking the first paint of the page.
solution: use an inline style for the main element in the page like for the Todo h1 title, but this is not the best-practice to use, so we can ignore that.