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

PoC for preloading responsive images for blocks #2322

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Osong-Michael
Copy link
Contributor

@Osong-Michael Osong-Michael commented Jul 15, 2024

Ref: PoC for Preloading big images (eg. Carousel Header, Page Header pattern) while using imagesrcset.

Still a work in progress. I need to understand certain things as regards testing on different screen sizes.

The concept seems straight forward but testing wise, I still seem to load the same image despite the it been on different screen sizes.

Some implementations propose using <link rel="preload" as="image" href="images/example-medium.jpg" media="(max-width: 1023px)">, while others suggest replacing the media with a sizes attribute instead. Still need to test further and see which implementation best works for our code base

- Testing out the functionality using the Carousel Block
@Osong-Michael Osong-Michael added the PoC Pull requests that are defined as a proof of concept label Jul 15, 2024
@Osong-Michael Osong-Michael self-assigned this Jul 15, 2024
@Osong-Michael Osong-Michael marked this pull request as draft July 15, 2024 09:31
planet-4 added a commit to greenpeace/planet4-test-umbriel that referenced this pull request Jul 15, 2024
/unhold b99353a7-ba97-43e8-84f9-0ef937b31f73
@planet-4
Copy link
Contributor

Test instance is ready 🚀

🌑 umbriel | admin | blocks report | CircleCI | composer-local.json

⌚ 2024.07.15 09:41:10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PoC Pull requests that are defined as a proof of concept [Test Env] umbriel
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants