SmilyOrg / photofield

Experimental fast photo viewer.
MIT License
402 stars 7 forks source link

Frontend optimization #9

Closed SmilyOrg closed 2 years ago

SmilyOrg commented 2 years ago

The app wasn't scoring that well on Lighthouse due to a variety of small low-hanging fruit optimizations that were missing (like gzipping js and css) and cache policies. This change addresses most of those and updates frontend dependencies while we're at it.

The following examples are for an album with ~5000 photos on a DS418play (warm caches).

lighthouse score before Photofield Lighthouse performance score was 76 before the optimizations

Adding these smaller optimizations makes it much better, even scoring 100 on the performance metric.

lighthouse score after Photofield Lighthouse performance score is 100 after optimizations

For reference, here is the same album with Google Photos (yes, it's slower!).

google photos lighthouse score Google Photos Lighthouse performance score