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

convert/resize images to cut index page load time in half #287

Open
nkia-christoph opened this issue Dec 1, 2023 · 2 comments
Open

convert/resize images to cut index page load time in half #287

nkia-christoph opened this issue Dec 1, 2023 · 2 comments

Comments

@nkia-christoph
Copy link

I was comparing map libraries and when comparing load times I saw that the high res iOS & Android pictures on your start page double your pageload time (on reasonable internet connections like mine).

standard: 1.4s

image

blocked iOS & Android pictures: 0.66s

image

standard trottled: 7.5s

image

website (tiny highres smartphone mockups)

image

image conversion/resizing

You could try compressing to webp and/or lowering the image resolution. Apparently hugo suppports both:

@nyurik
Copy link
Member

nyurik commented Dec 1, 2023

awesome suggestion, thanks! Maybe we can even automate this by having some sort of a "quality check" as part of the CI? Something that would fail if the image has too high DPI or size?

@wipfli
Copy link
Contributor

wipfli commented Dec 5, 2023

Hi @nkia-christoph. Thanks for this suggestion. Feel free to open a pull request with the relevant Hugo changes and I will be happy to review it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants