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

Improve CLS #10

Open
akellermann97 opened this issue Jan 18, 2025 · 0 comments
Open

Improve CLS #10

akellermann97 opened this issue Jan 18, 2025 · 0 comments
Milestone

Comments

@akellermann97
Copy link
Owner

Summary

Cumulative Layout shift is primarily caused by images on brot.dev loading. We need to provide details for the page to know ahead of time in order to mark the space as taken, rather than have the layout shift as the images load in.

Not 100% sure how I want to tackle this. Could be by having Hugo load the image resource, look at the aspect ratio and block out the size?

Some Links I found

web.dev article
log rocket article linked in the web.dev article

@akellermann97 akellermann97 added this to the BROT v1.0.0 milestone Jan 18, 2025
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

1 participant