commit | dae9f8d7d2e54fdbef4ea9c88e153339334f8b26 | [log] [tgz] |
---|---|---|
author | Scott Little <sclittle@chromium.org> | Thu Jan 10 21:53:16 2019 |
committer | Commit Bot <commit-bot@chromium.org> | Thu Jan 10 21:53:16 2019 |
tree | 940ce637104f6713220ee10b341c05078a8714bb | |
parent | 747094d33bece7ac282aca46b7be74c8f0c69325 [diff] |
LazyLoad: Only lazily load http/https images. Before this CL, data URI images would be considered for lazy loading, even though a data URI image would actually be loaded immediately anyways and not get deferred. For image elements, this pollutes the Blink.VisibleLoadTime.LazyLoadImages.* metrics with load times of all these data URI images that aren't actually eligible for lazy loading. For CSS background images, this causes Chrome to begin montoring the elements containing these images with an intersection observer until the user scrolls the viewport down to them, even though the data URI image loads instantly. This CL changes the logic to only consider http/https images for lazy loading, both for image elements and CSS background images. Bug: 920479 Change-Id: I105db546695c3464789703769013fa955f3bf10c Reviewed-on: https://chromium-review.googlesource.com/c/1404575 Reviewed-by: Kinuko Yasuda <kinuko@chromium.org> Commit-Queue: Scott Little <sclittle@chromium.org> Cr-Commit-Position: refs/heads/master@{#621758}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .