The Direct Impact of Page Speed on SEO
Page speed isn't just a "user experience" issue — it directly affects:
- Google rankings: Core Web Vitals (LCP, INP, CLS) are official ranking factors
- AI crawler citations: AI crawlers like Perplexity operate on a time budget, and slow pages get skipped
- User conversion rate: For every 1-second delay in page load, conversion rate drops by 7% (Google research)
- Crawl budget: Googlebot crawls slow websites less frequently
Core Page Speed Metrics
| Metric | Tool | Good Threshold |
|---|---|---|
| LCP (Largest Contentful Paint) | PageSpeed Insights | ≤ 2.5s |
| TTFB (Time To First Byte) | WebPageTest | ≤ 800ms |
| TBT (Total Blocking Time) | PageSpeed Insights | ≤ 200ms |
| Total page size | GTmetrix | ≤ 2MB |
How to Use Diagnostic Tools
Google PageSpeed Insights (free, most authoritative)
URL: pagespeed.web.dev
How to use: Enter a URL → review the mobile and desktop scores separately → focus on the "Opportunities" and "Diagnostics" sections
GTmetrix (free, visual timeline)
URL: gtmetrix.com
Strength: Provides a detailed waterfall chart that clearly shows the load time of each resource
WebPageTest (professional, multi-location testing)
URL: webpagetest.org
Best for: Testing load speed from different geographic locations (China, the US, Europe)
The 10 Key Techniques for Page Speed Optimization
Technique 1: Image Optimization (usually the biggest opportunity)
Images typically account for 60-80% of total page size, making them the top target for speed optimization:
<!-- 使用 WebP/AVIF 格式 -->
<picture>
<source srcset="image.avif" type="image/avif" />
<source srcset="image.webp" type="image/webp" />
<img src="image.jpg" alt="图片" loading="lazy" width="800" height="450" />
</picture>
- Format: PNG/JPEG → WebP (30-50% smaller), with another 30% reduction in browsers that support AVIF
- Lazy loading: Add
loading="lazy"to below-the-fold images - Dimensions: Set
widthandheightattributes to prevent CLS
Technique 2: Enable Browser Caching
Set HTTP cache headers on the server so users' browsers cache static resources (CSS, JS, images):
location ~* \.(js|css|png|jpg|webp)$ {
expires 1y;
add_header Cache-Control "public, immutable";
}
Technique 3: Enable Gzip/Brotli Compression
Text resources (HTML, CSS, JS) can be reduced by 70-80% through compression:
gzip on;
gzip_types text/plain text/css application/javascript application/json;
Technique 4: Use a CDN (Content Delivery Network)
A CDN caches static resources on nodes closest to the user, significantly lowering TTFB. Recommendations:
- International: Cloudflare (the free plan is sufficient), AWS CloudFront
- China: Alibaba Cloud CDN, Tencent Cloud CDN (ICP filing required)
Technique 5: Reduce Critical Rendering Path Blocking
Render-blocking resources (CSS, JS) placed in the wrong spot will delay LCP:
- CSS: Place
<link>in the<head>(required) - Non-critical JS: Add the
deferattribute or move it before</body> - Third-party JS (analytics, ads): Add the
asyncattribute
Technique 6: Inline Critical CSS
Extract the core CSS needed for above-the-fold rendering and inline it into a <style> tag in the HTML, while loading below-the-fold CSS asynchronously. This can significantly improve LCP.
Technique 7: Font Optimization
/* 避免字体加载导致 FOUT(无样式文字闪烁) */
@font-face {
font-family: 'MyFont';
src: url('myfont.woff2') format('woff2');
font-display: swap; /* 先显示后备字体,字体加载后替换 */
}
Technique 8: Reduce the Number of HTTP Requests
- Merge multiple small CSS/JS files (build tools like Vite/Webpack handle this automatically)
- Use CSS Sprites to combine small icons (or switch to SVG/icon fonts)
Technique 9: Upgrade to HTTP/2 or HTTP/3
HTTP/2 supports multiplexing (multiple requests sharing a single connection), and HTTP/3 reduces latency even further. All major CDNs and cloud providers already support them.
Technique 10: Server-Side Rendering (SSR) or Static Generation (SSG)
For Vue/React single-page applications (SPAs), above-the-fold rendering usually depends on JavaScript, resulting in poor LCP. Solutions:
- SSR (Server-Side Rendering): Generate HTML on the server so the browser can display it directly
- SSG (Static Generation): Pre-render all pages at build time (ideal for content sites)
Additional Considerations for Mobile Speed Optimization
- Mobile-first indexing: Google primarily indexes and ranks based on the mobile version, so mobile speed matters even more than desktop
- AMP (Accelerated Mobile Pages): An ultra-lightweight page format introduced by Google, suitable for news/blog-style content sites
- Reduce pop-ups and redirects: Mobile pop-ups are a "killer" of user experience and also hurt your CLS score
Frequently Asked Questions (FAQ)
Q: What PageSpeed Insights score do I need to be considered passing? A: Google officially recommends ≥ 50 (green) on mobile and ≥ 80 on desktop. But the score is only a reference — what matters is that the three metrics LCP/INP/CLS all reach the "Good" threshold.
Q: Will speed optimization break my website's functionality? A: Not if done correctly. We recommend testing in a development environment before going live, and using Git version control to make rollbacks easy.
See the SGAIndex SEO Tools Directory to explore page speed testing tools.