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
Unknown Object (File)
Tue, Dec 31, 7:36 AM
Unknown Object (File)
Wed, Dec 25, 12:27 PM
Unknown Object (File)
Wed, Dec 18, 12:57 AM
Unknown Object (File)
Sun, Dec 15, 3:31 PM
Unknown Object (File)
Nov 28 2024, 9:24 AM
Unknown Object (File)
Nov 27 2024, 10:55 AM
Unknown Object (File)
Nov 22 2024, 2:41 PM
Unknown Object (File)
Nov 20 2024, 10:28 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
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.