أهم النقاط
- Core Web Vitals measure loading (LCP), responsiveness (INP) and stability (CLS).
- Server caching and image optimisation give the biggest gains.
- Measure, fix the largest issue, then measure again.
Visitors leave slow sites, and Google uses real-world speed as a ranking signal. The good news: a handful of changes make most of the difference.
Know what you’re measuring
Google’s Core Web Vitals measure real user experience:
| Metric | Measures | Good |
|---|---|---|
| LCP (Largest Contentful Paint) | When the main content appears | ≤ 2.5 s |
| INP (Interaction to Next Paint) | How quickly the page responds to taps and clicks | ≤ 200 ms |
| CLS (Cumulative Layout Shift) | How much the layout jumps around | ≤ 0.1 |
Test with Google PageSpeed Insights, and use the field data (real users) where available.
The high-impact changes
Server response time
A slow server delays everything. Use caching so pages aren’t rebuilt on every request, keep PHP current, and make sure your hosting has enough resources.
Images
Usually the heaviest part of a page. Resize to display size, compress, use WebP or AVIF, set width and height to prevent layout shift, and lazy-load below-the-fold images — but not the main hero image.
JavaScript
Every script must download, parse and run. Remove what you don’t need, defer non-critical scripts, and be wary of heavy chat widgets, sliders and trackers.
Fonts
Limit families and weights, self-host where possible, and use font-display: swap so text shows immediately.
Caching headers and compression
Serve static files with long cache lifetimes and enable Brotli or gzip compression.
A CDN
Serves files from locations near each visitor and offloads traffic from your server.
Work in order
Measure → fix the biggest issue → measure again. Chasing a perfect score matters less than real users getting a fast page.