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

Hero images loading eager #641

Merged
merged 1 commit into from
Mar 7, 2023
Merged

Conversation

rafaelstz
Copy link
Contributor

@rafaelstz rafaelstz commented Mar 4, 2023

WHY are these changes introduced?

Both hero images are highly relevant to have an eager loading since they are above the fold.

WHAT is this pull request doing?

It's adding loading='eager'to the second image in the Hero component as it's already applied to the first one.

Capture d’écran, le 2023-03-03 à 20 28 37

HOW to test your changes?

I simulated a slow connection via the Network tab and checked the loading compared with other images with lazy loading.

Checklist

  • I've read the Contributing Guidelines
  • I've considered possible cross-platform impacts (Mac, Linux, Windows)
  • I've added a changeset if this PR contains user-facing or noteworthy changes
  • I've added tests to cover my changes
  • I've added or updated the documentation

@rafaelstz rafaelstz marked this pull request as ready for review March 4, 2023 01:31
Copy link
Contributor

@cartogram cartogram left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @rafaelstz 🚀

@cartogram cartogram merged commit 855e07b into Shopify:2023-01 Mar 7, 2023
juanpprieto pushed a commit that referenced this pull request Mar 7, 2023
juanpprieto added a commit that referenced this pull request Mar 7, 2023
…ed] (#660)

* refactor seo and implement ld+json structured data

* Update templates/demo-store/app/lib/seo.server.ts

Co-authored-by: Matt Seccafien <[email protected]>

* Update templates/demo-store/app/routes/($lang)/search.tsx

Co-authored-by: Matt Seccafien <[email protected]>

* Fix bug in create CLI using `--install-deps` flag (#644)

* Fix bug in create CLI using `--install-deps` flag

* Use flags to camel case util

* Add tests for init

---------

Co-authored-by: Matt Seccafien <[email protected]>

* Hero images loading eager (#641)

* Remove Turbo cache in Oxygen deplyment (#655)

Co-authored-by: Matt Seccafien <[email protected]>

* Remove Turbo cache from typescript build action (#656)

Co-authored-by: Matt Seccafien <[email protected]>

* fix search products count

fix search products count

---------

Co-authored-by: Matt Seccafien <[email protected]>
Co-authored-by: Matt Seccafien <[email protected]>
Co-authored-by: Rafael Corrêa Gomes <[email protected]>
@rafaelstz rafaelstz deleted the feature/hero-eager branch March 10, 2023 13:18
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.

2 participants