matrix-org / matrix-org/matrix.org

PNGs are not opimised (performance issue)

Open
#706 3 comments 1 reaction 0 assignees View on GitHub
enhancement
Dominant language
JavaScript
Stars
616
Forks
463
Avg merge
2d 3h
Merged PRs (30d)
19

Description

[Google Lighthouse](https://developers.google.com/web/tools/lighthouse/) identified that we ship PNGs with a larger file size than needed:
![Screenshot_2020-04-23_18-20-28](https://user-images.githubusercontent.com/10872136/80123391-207b7200-858f-11ea-87a6-7cf895024d9e.png)

One script which may help is:
```bash
# Warning: If the optimization fails or the file can't be optimized, the file ends up as a 0 byte file
find . -name '*.png' -exec mv {} {}.old \; -exec pngcrush {}.old {} \; -exec rm {}.old \;
```

Contributor guide

Open the contributing guide

Research direction

Start by inventorying the repository's PNG assets and reviewing the linked Lighthouse finding to identify which files are oversized. Use the issue's pngcrush approach cautiously with backups, then verify that the optimized files are smaller and the website remains intact.

Written by the indexing model from the issue text.

Assessment

Domain
performance, web-dev
Issue type
Refactor
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.