🍋
Menu
Best Practice Beginner 1 min read 166 words

Page Speed Optimization Best Practices for SEO

Page speed is a confirmed Google ranking factor. Learn how to optimize Core Web Vitals and page load times for better search performance.

Key Takeaways

  • Google's ranking signal uses three metrics: LCP (Largest Contentful Paint), INP (Interaction to Next Paint), and CLS (Cumulative Layout Shift).
  • Images are typically the largest page elements.
  • CSS and synchronous JavaScript block page rendering.
  • Set appropriate Cache-Control headers.
  • Custom fonts can block text rendering.

Core Web Vitals

Google's ranking signal uses three metrics: LCP (Largest Contentful Paint), INP (Interaction to Next Paint), and CLS (Cumulative Layout Shift). Good scores are LCP < 2.5s, INP < 200ms, and CLS < 0.1.

Image Optimization

Images are typically the largest page elements. Convert to WebP/AVIF, resize to display dimensions, use responsive srcset, and lazy-load below-fold images. This alone can improve LCP by 1-3 seconds.

Render-Blocking Resources

CSS and synchronous JavaScript block page rendering. Inline critical CSS in , defer non-critical CSS, and add defer or async to script tags. Move third-party scripts to page bottom.

Caching Strategy

Set appropriate Cache-Control headers. Static assets (CSS, JS, images) can be cached for a year with content-hash filenames. HTML pages should use shorter cache periods or no-cache with ETag validation.

Font Loading

Custom fonts can block text rendering. Use font-display: swap to show text immediately with fallback fonts. Subset fonts to include only needed characters. Preload critical fonts with .

相关工具

相关格式

相关指南