Skip to content

Web Performance

In one line

Web performance is the practice of optimizing how fast a website loads and how smoothly it responds to user interaction.

In simple words

Web performance is about making websites fast — fast to load, fast to respond, and smooth to interact with. Good performance improves user experience, conversion rates, and SEO rankings.

Key metrics include: Time to First Byte (TTFB), First Contentful Paint (FCP), Largest Contentful Paint (LCP), Cumulative Layout Shift (CLS), and First Input Delay (FID). These "Core Web Vitals" are what Google uses to measure page experience.

Common optimizations include: minimizing and compressing resources (CSS, JS, images), using defer/async on scripts, lazy loading images, using a CDN, enabling caching, reducing HTTP requests, and optimizing images. Performance is an ongoing concern — measure with tools like Lighthouse and Chrome DevTools, then optimize the biggest bottlenecks.

Example

html
<!-- Performance optimizations -->
<script src="app.js" defer></script>
<img src="hero.webp" alt="Hero" loading="eager" width="800" height="600">
<img src="below.jpg" alt="Below" loading="lazy" width="400" height="300">
<link rel="preconnect" href="https://cdn.example.com">

Deferred script, optimized image format (WebP), lazy loading, and preconnect for faster loading.

Related terms

Related Resources

Related Lessons

Decode error messages

Plain-English explanations of common errors — what they mean, why they happen, and how to fix them.

View errors

← Back to glossary