optimize html, css, svg's, and webp delivery

This commit is contained in:
tresabhi committed 2026-11-20 23:23:40 -06:00
1 parent 457f04ce0c
commit 68335de62c
75 files changed
+452 -331

No files matched your search

@@ -19,6 +19,7 @@ import type { TankState } from "../../tankopedia/tankState";
import { classNames } from "../../ui/classNames";
import { Discriminator } from "../Discriminator";
import { IconButton } from "../IconButton";
import { LazyImage } from "../LazyImage";
import { LinkI18n } from "../LinkI18n";
import { LoadoutSection } from "../LoadoutSection";
import shared from "../LoadoutTree/index.module.css";
@@ -220,7 +221,7 @@ function ModuleNode({
if (!isTank) onSelect(unlock);
}}
>
<img
<LazyImage
alt={tooltip}
src={
isTank
@@ -237,7 +238,7 @@ function ModuleNode({
{unlock.cost!.value > 0 && (
<div className={shared.price}>
<Text size="minor">{formatCompact(locale, unlock.cost!.value)}</Text>
<img
<LazyImage
alt={unlock.cost!.type}
src={alias("api", `/icons/currencies/${unlock.cost!.type}.webp`)}
/>