Skip to content

Shared task board where people and AI coding agents work as teammates. Source-available, self-hostable.

Go

perf(web): preload landing hero background (MUL-6711) (#7582)

Bintengf74a71060fcd
diff --git a/apps/web/features/landing/components/landing-hero.tsx b/apps/web/features/landing/components/landing-hero.tsx
index e7c807497e..c3bedbe7c5 100644
--- a/apps/web/features/landing/components/landing-hero.tsx
+++ b/apps/web/features/landing/components/landing-hero.tsx
@@ -104,11 +104,14 @@ export function LandingHero() {
function LandingBackdrop() {
return (
<div className="pointer-events-none absolute inset-0">
+ {/* This artwork is above the fold, so preload it alongside the product preview. */}
<Image
src="/images/landing-bg.webp"
alt=""
fill
+ preload
className="object-cover object-center"
+ sizes="100vw"
/>
</div>
);
@@ -123,7 +126,7 @@ function ProductImage({ alt }: { alt: string }) {
alt={alt}
width={2640}
height={1781}
- priority
+ preload
className="block h-auto w-full"
sizes="(max-width: 1320px) 100vw, 1320px"
quality={85}