Key takeaways
- Measure performance before changing settings.
- Optimize images and unnecessary scripts first.
- Use caching carefully and test dynamic pages such as checkout.
Measure before optimizing
Start with a baseline for the pages your visitors actually use. Test from relevant locations and on realistic mobile connections. A laboratory test helps diagnose issues, while field data reflects real users over time. Do not compare two tests performed under different conditions as though they were identical.
Time to First Byte (TTFB) measures the time until the first byte arrives. It includes network and server-related delays and does not measure the full loading experience. The following read-only command gives a basic request timing sample.
curl -sS -o /dev/null -w "TTFB: %{time_starttransfer}s\nTotal: %{time_total}s\n" https://example.com/Understand Core Web Vitals
Core Web Vitals describe loading, responsiveness and visual stability. Google's good thresholds apply at the 75th percentile of real visits, where field data is available. Lab tools can help identify causes but cannot replace actual field data.
A fast server can help loading performance, but heavy JavaScript, oversized images and unexpected layout shifts may still make a page feel slow.
| Metric | Good threshold | Measures |
|---|---|---|
| LCP | 2.5 seconds or less | Largest content element loading |
| INP | 200 milliseconds or less | Interaction responsiveness |
| CLS | 0.1 or less | Unexpected layout movement |
Optimize images and frontend assets
Resize images to match their actual display size and use modern formats such as WebP or AVIF when appropriate. Provide responsive variants and explicit dimensions to reduce layout shifts. Lazy-load images below the visible area, but do not delay the main above-the-fold image unnecessarily.
Audit third-party scripts and unused CSS or JavaScript. Remove code that does not serve a real purpose. Load noncritical functionality later where possible, while ensuring important navigation and forms still work.
- Compress and appropriately size images.
- Reserve space for images and embeds.
- Remove redundant third-party scripts.
Use caching and a CDN correctly
Page caching can reduce repeated application work for public pages. A CDN can serve static assets from locations closer to visitors. Neither is a replacement for fixing slow database queries or inefficient application code.
Avoid caching private account content, carts and checkout responses. Follow the application’s cache exclusion recommendations. After changing settings, test anonymous and logged-in users and confirm that private information is never served to another user.
Explore: WordPress hosting · WooCommerce hosting
Investigate backend bottlenecks
If uncached pages respond slowly, investigate application execution, database queries, external API calls and resource usage. Look for patterns during actual slow periods rather than increasing resource limits without evidence.
A hosting upgrade may help when sustained workload exceeds the available resources, but it will not fix every application bottleneck. Compare before and after results and keep changes reversible. Review hosting plan limits and support options when the workload genuinely requires more capacity.
Explore: Hosting selection guide · Website security essentials
Choose hosting for your website’s workload
Explore hosting resources and upgrade options that fit your website.
Explore hosting plansFrequently asked questions
Does a CDN always make a website faster?
Not always. It depends on visitor location, cacheability, origin performance and configuration. Measure representative pages before and after enabling it.
Should I install multiple caching plugins?
Usually one well-configured caching system is simpler. Avoid overlapping page cache layers unless you understand their invalidation and exclusion rules.
Does a perfect Lighthouse score guarantee good SEO?
No. Lighthouse is a diagnostic tool. Search visibility depends on content relevance and many other factors; real user performance also matters.
