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

Actually preload first hero image on homepage #16025

Merged
merged 1 commit into from Jun 22, 2017
Merged

Conversation

wjordan
Copy link
Contributor

@wjordan wjordan commented Jun 22, 2017

Small followup/fix to #16002. The previous PR still unintentionally included the .lazyload class on the first hero image, which caused it to delay loading until the lazysizes library had loaded. This fix will cause the first hero image to render as soon as it downloads.

I've also swapped the <link rel=preload> tags out for Link, rel=preload HTTP response headers, which will allow the preloading to begin earlier in the page-load process (as soon as the HTTP-response headers are received, rather than after the full HTTP-response body is received and parsed).
Also added a few more comments for clarity.

@wjordan wjordan merged commit c95928a into staging Jun 22, 2017
@wjordan wjordan deleted the homepage-hero-preload branch June 22, 2017 15:34
wjordan added a commit that referenced this pull request Jun 27, 2017
Followup to #16025.
[ci skip]
tanyaparker pushed a commit that referenced this pull request Jun 28, 2017
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

Successfully merging this pull request may close these issues.

None yet

1 participant