Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Research: Image loading performance optimization #3

Open
masonmcelvain opened this issue Jan 17, 2021 · 2 comments
Open

Research: Image loading performance optimization #3

masonmcelvain opened this issue Jan 17, 2021 · 2 comments
Labels
help wanted Extra attention is needed research This needs more specification

Comments

@masonmcelvain
Copy link
Member

We need to make this app more performant in terms of image loading and video playback.

  • We could use image compression to keep file sizes small.
  • We could use cacheing of places already visited to make fewer requests to get image/location data from the API.
  • Progressive loading of images (low quality if on first load, replaced by high quality if not on mobile).
@masonmcelvain masonmcelvain added help wanted Extra attention is needed research This needs more specification labels Jan 17, 2021
@Jason-Ku
Copy link

Jason-Ku commented Jan 24, 2021

https://insanelab.com/blog/web-development/webp-web-design-vs-jpeg-gif-png/#:~:text=JPEG%20is%20a%20no%2Dbrainer,JPEG%20as%20an%20image%20format.

Take away from above and other sources:

  • WebP files are ~30% smaller but maintain roughly the same quality
  • Not supported by Safari
  • Supported by most other browsers though

@masonmcelvain
Copy link
Member Author

masonmcelvain commented Jan 25, 2021

AVIF is another file compression format with great compression (about 50% smaller file sizes than JPG). Doesn't have as much browser support as WebP however.
https://www.freecodecamp.org/news/how-to-use-avif-images-on-your-website/

https://jakearchibald.com/2020/avif-has-landed/

@masonmcelvain masonmcelvain added this to the Optimize performance milestone Feb 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed research This needs more specification
Projects
None yet
Development

No branches or pull requests

2 participants