-
Notifications
You must be signed in to change notification settings - Fork 0
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
Resize top tier header images to avoid loading unshown parts #400
base: main
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Coverage after merging benaiah/resize-top-tier-header-images into main will be
Coverage Report
|
Reports for have been deployed to Vercel: |
@@ -1,3 +1,4 @@ | |||
.top-tier-page-hero-image { | |||
height: 33vh; | |||
height: 14rem; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is definitely much cleaner, but the images can look overly-cropped at larger screen sizes. If we increase this value based on screen size (with static values, not %
, vh
, etc.) would that mess up any of the optimizations? I'm thinking maybe we increase it to 16rem
on tablet
and then 18rem
on desktop
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, I'll look into this!
Proposed changes
getSources
such that we never require more of an image than can possibly be shownScreenshots
Desktop:
Mobile: