Web Performance: Beyond Core Web Vitals
Core Web Vitals are just the start. Learn advanced performance techniques including resource hints, code splitting, and the new INP metric.
The Performance Hierarchy
Fast websites aren't just better for users — they rank higher, convert more, and cost less to run. Google's Core Web Vitals are the minimum bar. Here's how to go beyond them.
The Three Pillars
LCP (Largest Contentful Paint) — How fast does the main content appear?
- Target: under 2.5 seconds
- Fix: preload hero images, use CDN, optimize server response time
CLS (Cumulative Layout Shift) — Does content jump around?
- Target: under 0.1
- Fix: always set explicit dimensions on images and embeds
INP (Interaction to Next Paint) — How responsive is the page?
- Target: under 200ms
- Fix: break up long tasks, use
scheduler.yield()
Resource Hints
<!-- Preload critical resources -->
<link rel="preload" href="/fonts/inter.woff2" as="font" crossorigin>
<!-- Prefetch next page -->
<link rel="prefetch" href="/en/blog/next-post">
<!-- Preconnect to third-party origins -->
<link rel="preconnect" href="https://fonts.googleapis.com">
Code Splitting in Next.js
import dynamic from "next/dynamic";
// Only load this component when needed
const HeavyChart = dynamic(() => import("./HeavyChart"), {
loading: () => <div>Loading chart...</div>,
ssr: false,
});
The scheduler.yield() Pattern
async function processLargeList(items) {
for (let i = 0; i < items.length; i++) {
processItem(items[i]);
// Yield to browser every 50 items
if (i % 50 === 0) {
await scheduler.yield();
}
}
}
Measurement Tools
- Lighthouse: automated audits in Chrome DevTools
- WebPageTest: real-world testing from multiple locations
- Chrome UX Report: field data from real users
Performance is a feature. Ship it like one.
Written by
Amara Osei
Writes on search, distribution, and how good work actually gets found.
Related Articles
SEO Fundamentals for Modern Web Apps
Core SEO principles every developer should know: structured data, Core Web Vitals, semantic HTML, and the Next.js Metadata API.
Next.js App Router: Patterns That Actually Work
Real-world patterns for the Next.js App Router — parallel routes, intercepting routes, loading UI, error boundaries, and streaming with Suspense.
API Design Best Practices in 2024
Design APIs that developers love. Covers REST conventions, versioning strategies, error handling, pagination, and the OpenAPI specification.