bitwarden / clients

Bitwarden client apps (web, browser extension, desktop, and cli).
https://bitwarden.com
Other
8.8k stars 1.15k forks source link

Improve font-loading performance #2799

Open coliff opened 2 years ago

coliff commented 2 years ago

Steps To Reproduce

  1. Go to Lighthouse test 'https://googlechrome.github.io/lighthouse/viewer/?psiurl=https%3A%2F%2Fvault.bitwarden.com%2F%23%2F&strategy=desktop&category=performance&category=accessibility&category=best-practices&category=seo'
  2. View Diagnostics.
  3. The fonts loading are WOFF. Loading WOFF2 instead on all modern browsers would bring a noticeable page load performance improvement. Also the fonts are only being cached for 14-days. Ideally they should be cached for 365 days to improve load times for repeat visitors.

image

Expected Result

Actual Result

Screenshots or Videos

No response

Additional Context

No response

Operating System

Windows

Operating System Version

Windows 10 Pro

Web Browser

Microsoft Edge

Browser Version

97

Build Version

Version 2.25.1

djsmith85 commented 2 years ago

Thank you for the report @coliff.

I assumed the image you tried to upload was a screenshot from the report. I've added one from a run of Lighthouse today. The upcoming release will address some of the items you mentioned, and once it's out you'll be able to compare.

coliff commented 2 years ago

great - thanks @djsmith85 !