-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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 homepage FCP/LCP performance and image loading with responsiv… #3027
base: master
Are you sure you want to change the base?
Conversation
width="1216" | ||
height="667" | ||
loading="eager" | ||
fetchPriority="high" | ||
src={require('./static/img/home-hero.svg')} | ||
sizes="(max-width: 539px) 400px, (max-width: 991px) 650px, 1216px" |
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.
#home-hero-graphic { | ||
content: url("../img/lightmode/home-hero.svg"); | ||
} | ||
|
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.
Currently, the home hero image has two versions. The version for light mode has slightly darker colors for the "X" to improve contrast. (Compare: for dark mode vs for light mode)
I don't know if this change was intentional or accidental. If it's intentional, then you should also delete the light mode image now that it's not used.
@@ -672,7 +668,7 @@ pre { | |||
##{$company} { | |||
.biz-logo { | |||
max-height: 40px; | |||
content: url("../img/uses/lightmode/#{$company}.#{$type}"); | |||
content: url("../img/uses/lightmode/#{$company}.#{$type}"); |
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.
Why are you adding whitespace to the end of these lines? That seems unnecessary and clutters the diff.
…e optimizations.

Live Site:
This branch:
