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
F16744871: D19194.diff
Tue, Jun 17, 9:26 PM
Unknown Object (File)
Tue, Jun 3, 5:20 AM
Unknown Object (File)
Sat, May 31, 12:13 PM
Unknown Object (File)
Sat, May 31, 11:01 AM
Unknown Object (File)
Fri, May 30, 8:51 AM
Unknown Object (File)
Apr 27 2025, 11:13 AM
Unknown Object (File)
Apr 26 2025, 8:50 AM
Unknown Object (File)
Apr 25 2025, 12:35 AM
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.