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
F18864579: D19194.diff
Mon, Nov 3, 7:05 AM
F18852792: D19194.id45973.diff
Fri, Oct 31, 11:59 AM
F18819944: D19194.id.diff
Wed, Oct 22, 11:19 AM
F18816979: D19194.diff
Tue, Oct 21, 11:04 AM
F18813393: D19194.id45969.diff
Mon, Oct 20, 4:00 PM
F18739284: D19194.diff
Oct 1 2025, 8:44 PM
F18733761: D19194.id45973.diff
Sep 30 2025, 10:41 PM
F18613436: D19194.id.diff
Sep 14 2025, 11:11 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
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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.