commit | 10bb83df93723eeecec3590fdf14904adf835795 | [log] [tgz] |
---|---|---|
author | Kunihiko Sakamoto <ksakamoto@chromium.org> | Thu Dec 06 03:10:20 2018 |
committer | Commit Bot <commit-bot@chromium.org> | Thu Dec 06 03:10:20 2018 |
tree | 29b78295a9be85af3577b25d3698ea629dd626c9 | |
parent | 198763278fb66b3a7135b29c3817f2dc5df7d6f4 [diff] |
Defer preloads with imagesrcset/imagesizes until the first chunk is parsed Preloads from link headers with the media attribute are deferred until the first chunk of the document is parsed, so that ViewportDescription from the preload scanner can be taken into account. Preloads with imagesrcset or imagesizes depend on the viewport, so such preloads should be deferred as well. Note: This applies to only preloads dispatched by DocumentLoader. Link rel=preload headers from subresources (e.g. prefetch) are not deferred even if they have media/imagesrcset/imagesizes attributes. Bug: 813452 Change-Id: Iccc6ec12cf5bd53b71824463378c854cbd23a5ba Reviewed-on: https://chromium-review.googlesource.com/c/1360193 Reviewed-by: Dominic Farolino <domfarolino@gmail.com> Reviewed-by: Kinuko Yasuda <kinuko@chromium.org> Reviewed-by: Yoav Weiss <yoavweiss@chromium.org> Commit-Queue: Kunihiko Sakamoto <ksakamoto@chromium.org> Cr-Commit-Position: refs/heads/master@{#614253}
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 .