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

core(responsive-images): find offscreen images larger than viewport #10506

Merged
merged 6 commits into from Apr 6, 2020

Conversation

patrickhulce
Copy link
Collaborator

Summary
Currently there's a loophole that super massive images that are also offscreen can bypass the responsive image check. This PR changes the logic in uses-responsive-images to use 2 vertically stacked viewports (to forgive scrollable images) as the maximum potential size the image could have been displayed at instead of ignoring it completely.

Related Issues/PRs
closes #7236

@patrickhulce patrickhulce requested a review from a team as a code owner March 25, 2020 19:57
@patrickhulce patrickhulce requested review from exterkamp and removed request for a team March 25, 2020 19:57
@patrickhulce patrickhulce changed the title core(responsive-images): penalize offscreen images larger than viewport core(responsive-images): find offscreen images larger than viewport Mar 25, 2020
@patrickhulce
Copy link
Collaborator Author

@exterkamp did you particularly want to review these changes or should I let @connorjclark 's review be sufficient?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Lighthouse fails to flag a 24MP image
5 participants