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

Optimise image loading depending on the device resolution #16

Open
khanguslee opened this issue Apr 25, 2020 · 0 comments
Open

Optimise image loading depending on the device resolution #16

khanguslee opened this issue Apr 25, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@khanguslee
Copy link
Owner

Problems

Websites with slow loading images are not usable. The portfolio website currently loads the same sized image for all devices and network speeds.

Description

Using a bunch of gatsby plugins (of course), optimise the type of image to display on the website depending on the screen resolution.

This basically involves reading through the following tutorials: https://www.gatsbyjs.org/docs/working-with-images/
https://www.sitepoint.com/automatically-optimize-responsive-images-in-gatsby/
https://medium.com/@alexasteinbrueck/understanding-gatsby-image-part-2-responsive-images-101-14b04c8bfd62

When is it done?

When the website loads all images with different sizes depending on the screen resolution. This optimisation should be done for https://github.com/khanguslee/personal-website/blob/master/src/assets/images/avatar.png. It should also work for any other images inside the assets/images directory.

@khanguslee khanguslee added the enhancement New feature or request label Apr 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant