Page MenuHomePhabricator

When rendering "{image ...}" images, check the cache and just render a direct "<img />" tag if possible
ClosedPublic

Authored by epriestley on Mar 8 2018, 2:51 PM.
Tags
None
Referenced Files
F15539293: D19194.id45969.diff
Fri, Apr 25, 12:35 AM
F15538551: D19194.id45973.diff
Thu, Apr 24, 7:55 PM
F15532157: D19194.id45969.diff
Wed, Apr 23, 2:35 PM
F15529937: D19194.id.diff
Tue, Apr 22, 11:38 PM
F15478869: D19194.diff
Tue, Apr 8, 3:29 AM
F15461871: D19194.id45973.diff
Tue, Apr 1, 12:03 PM
F15460889: D19194.id45969.diff
Tue, Apr 1, 3:12 AM
F15456900: D19194.id45973.diff
Sun, Mar 30, 12:57 PM
Subscribers
None

Details

Summary

Depends on D19193. Ref T13101. Fixes T4190. Before we render a fancy AJAX placeholder, check if we already have a valid cache for the image. If we do, render a direct <img /> tag. This is a little cleaner and, e.g., avoids flicker in Safari, at least.

Test Plan

Rendered {image ...} rules in remarkup with new and existing URIs.

Diff Detail

Repository
rP Phabricator
Branch
image3
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 19786
Build 26805: Run Core Tests
Build 26804: arc lint + arc unit

Event Timeline

This revision was not accepted when it landed; it landed in state Needs Review.Mar 8 2018, 3:04 PM
This revision was automatically updated to reflect the committed changes.