-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
Anything with a thumbnail and click to enlarge #14900
Comments
cc @cathyxz |
Thanks for the suggestion to achieve this with srcset and sizes. It's not immediately intuitive how it'll load a small image with the page load, and then load a larger one when the small image is clicked. I'll research it. Have a wonderful day, @cathyxz! |
Actually maybe I'm over-complicating this. @IamAlta there might be a few simple ways to achieve this:
|
@cathyxz, I was unaware that you can put the larger image in the lightbox and it won't load until the lightbox is displayed. REQUEST: Perhaps add that information to your Amp by Example and Amp Project - that an image can go into the amp-lightbox, and it won't load until the button is clicked. I hesitate to try the amp-lightbox-gallery at this time because we are so close to launch (I hope). Make it a wonderful day! You certainly deserve it. |
Oh, @cathyxz, |
This issue hasn't been updated in awhile. @cathyxz Do you have any updates? |
This should work out of the box with |
What's the issue?
Feature request.
The idea of AMP is to accelerate the page loads. However, loading an extra large image as a thumbnail defeats the purpose.
Many times, the visitor does not want to see an extra large image, and loading the extra large image results in unnecessary transit bits. Some extra large images cannot stand much compression if it's a detailed image where the customer wants to see the detailing.
amp-carousel and amp-lightbox have these issues. I am unaware of any other functions that might.
The request is to load an small thumbnail then load the larger image from the server if and when the visitor clicks the thumbnail. This can reduce page load times to give the end-user a better experience.
How do we reproduce the issue?
n/a
What browsers are affected?
All browsers
Which AMP version is affected?
Powered by AMP ⚡ HTML – Version 1524089272632
The text was updated successfully, but these errors were encountered: