Bruce Lawson on Nostr: On SVGs & performance: is there a perf reason to inline an SVG image (so the XML code ...
On SVGs & performance: is there a perf reason to inline an SVG image (so the XML code is visible in your HTML source) rather than pulling in an external resource e.g. <img src="zonk.svg">? It feels a bit like inlining images with base64, which doesn't therefore take advantage of the browser cache.
Published at
2024-01-25 11:20:46Event JSON
{
"id": "f895ff099f6001a94eed328bff1795211b096df8ae2e1f77c6aaa482cf757409",
"pubkey": "b847eb5cab0136e3db1228ed6bfdb454c507512e5723842eda31908096a91230",
"created_at": 1706181646,
"kind": 1,
"tags": [
[
"proxy",
"https://social.vivaldi.net/users/brucelawson/statuses/111816320383019129",
"activitypub"
]
],
"content": "On SVGs \u0026 performance: is there a perf reason to inline an SVG image (so the XML code is visible in your HTML source) rather than pulling in an external resource e.g. \u003cimg src=\"zonk.svg\"\u003e? It feels a bit like inlining images with base64, which doesn't therefore take advantage of the browser cache.",
"sig": "74406f8f33fb02e8c8333b88a01e185a87479944362c4b1c3468956742f558b6c8c71c370273e0d7f3a0a2abdee23e121fe364638eda8b58960a159572470ed0"
}