CodeForPhilly / clean-and-green-philly

Dashboard to target Philly vacant properties for anti-gun violence interventions
https://www.cleanandgreenphilly.org/
MIT License
32 stars 64 forks source link

Task: Audit performance of homepage #733

Closed CodeWritingCow closed 3 months ago

CodeWritingCow commented 4 months ago

Describe the task

Audit performance of Clean and Green Philly's homepage using Google Lighthouse. Document audit results, including areas of improvement.

Acceptance Criteria

Additional context

CodeWritingCow commented 4 months ago

Lighthouse report for mobile devices

Performance score was 67/100. Score took a hit due to the page's blocking time of 4.24 seconds.

Screenshots

Image Image Image

CodeWritingCow commented 4 months ago

Lighthouse report for desktop devices

Performance score was 61/100. Score took a hit due to the page's blocking time of 2.26 seconds.

Screenshots

Image Image Image

CodeWritingCow commented 3 months ago

Unassigned myself from this issue so other contributors can work on it. I've posted screenshots of the audit reports. Only things missing are report summaries and recommendations for improvement.

zheyichn commented 3 months ago

Hi @CodeWritingCow, can I be assigned this pls?

CodeWritingCow commented 3 months ago

@zheyichn assigned! Thank you for taking this off my plate.

zheyichn commented 3 months ago

When I ran the Lighthouse report in my local incognito window, it displayed different results from the above screenshots. According to the screenshots above, the high total blocking time mainly penalized the performance score. However, I did not see total blocking time as a problem on my end. To provide improvement recommendations, I need to click in to see detailed information. Therefore, I have posted my screenshots below and will summarize based on these.

Lighthouse report for desktop devices

Screenshots

home-desktop-1 home-desktop-2 home-desktop-3 home-desktop-4 home-desktop-5 home-desktop-6
zheyichn commented 3 months ago

Lighthouse report for mobile devices

Screenshots

home-mobile-1 home-mobile-2 home-mobile-3 home-mobile-4 home-mobile-5 home-mobile-6 home-mobile-7
zheyichn commented 3 months ago

Summary of audit highlights.

Improvement suggestions.

  1. Investigate the cause of the image Load delay (59% of LCP) - The delta between Time to first byte and when the browser starts loading the LCP resource. (Performance)
  2. Remove unused CSS - Splitting the global.css file into smaller files specific to different pages/components can help avoid loading unnecessary CSS. (Performance)
  3. aria-pressed cannot be used on nav element. Relevant to #727.
CodeWritingCow commented 3 months ago

@zheyichn thanks for digging into this. It seems image load delay and unused CSs are common issues on the website.