perf(site): inline small classic icons and favicon as base64
- New src/lib/site-icons.ts: base64 data URIs for the 13 tiny classic icons actually referenced in markup (100–2000 bytes), replacing extra requests with inline payloads. home.png, dynamic flags and currency sets stay on the filesystem. - Default favicon is now served server-side as a base64 SVG data URI (memoized), while a DB-configured custom favicon still takes priority. - Icons render through <Image unoptimized>, so data URIs pass through untouched on all affected pages (home, login, register, settings, navigation, auth top bar, client loading).
This commit is contained in:
1 parent
97012a78f6
commit
e5e17d75ae
10 files changed
+128
-64
No files matched your search
@@ -1,4 +1,5 @@
|
||||
import Image from "next/image";
|
||||
import { ICON_LIGHTHOUSE } from "@/lib/site-icons";
|
||||
|
||||
export default function ClientLoading() {
|
||||
return (
|
||||
@@ -27,7 +28,7 @@ export default function ClientLoading() {
|
||||
}}
|
||||
>
|
||||
<Image
|
||||
src="/assets/images/icons/lighthouse.png"
|
||||
src={ICON_LIGHTHOUSE}
|
||||
alt=""
|
||||
width={44}
|
||||
height={44}
|
||||
|
||||
Reference in new issue
Block a user