diff options
| author | Fuwn <[email protected]> | 2026-05-15 10:27:00 +0000 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2026-05-15 10:27:00 +0000 |
| commit | 0d041c6b61fddb96fe3c65764bf54298cdadbeba (patch) | |
| tree | a6069215ed797880d2cd1b096b30777b3cabb8f5 /src/lib/Error | |
| parent | fix(a11y): give CommandPalette real dialog and combobox semantics (diff) | |
| download | due.moe-0d041c6b61fddb96fe3c65764bf54298cdadbeba.tar.xz due.moe-0d041c6b61fddb96fe3c65764bf54298cdadbeba.zip | |
perf(images): lazy-load and async-decode off-screen imagery
Add loading=lazy and decoding=async to the 16 <img> elements that
weren't already deferring across Tools/Wrapped, Events, EasterEvent,
Hololive, and the rate-limited fallback. Also drop the
backdrop-filter: blur(160px) the dropdown items were paying on every
hover; the background-color change already gives sufficient feedback,
and the parent card's own blur stays.
Diffstat (limited to 'src/lib/Error')
| -rw-r--r-- | src/lib/Error/AnimeRateLimited.svelte | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/Error/AnimeRateLimited.svelte b/src/lib/Error/AnimeRateLimited.svelte index b3eb1ccb..70509a0c 100644 --- a/src/lib/Error/AnimeRateLimited.svelte +++ b/src/lib/Error/AnimeRateLimited.svelte @@ -13,7 +13,7 @@ import Popup from "$lib/Layout/Popup.svelte"; <Spacer /> <a href={`https://trace.moe/?url=${encodeURIComponent(json.url)}`} target="_blank"> - <img src={json.url} alt="" style="width: 30vw;" /> + <img src={json.url} alt="" loading="lazy" decoding="async" style="width: 30vw;" /> </a> {/await} {/await} |