commit | 72b7454b7d1ea60317365a076187da54e646e88e | [log] [tgz] |
---|---|---|
author | sclittle <[email protected]> | Mon Oct 24 20:49:06 2016 |
committer | Commit bot <[email protected]> | Mon Oct 24 20:51:30 2016 |
tree | 424f49a642d0e08ac54f3d03619f7c110c226461 | |
parent | 19568cb04a4d52fd1ca049e1efcb403df26ae4cc [diff] |
Add Blink support for showing image placeholders using range requests. Design doc: https://docs.google.com/document/d/1691W7yFDI1FJv69N2MEtaSzpnqO2EqkgGD3T0O-pQ08/edit?usp=sharing This CL introduces support for issuing a range request for just the first few bytes of an image, and showing a translucent gray box of the same size as the image in the image's place if the original image's dimensions can be decoded from the returned range. Currently, this behavior is only activated via a blink-settings flag. In the future, features such as Data Saver will activate this functionality to save data for users. BUG=605350,605351 Review-Url: https://codereview.chromium.org/2423683002 Cr-Commit-Position: refs/heads/master@{#427141}