Page Speed & Performance

Page Speed and Performance are crucial ranking factors for modern search engines. Google has defined clear metrics with Core Web Vitals that directly influence the ranking algorithm. A fast website not only improves search engine position but also user experience and conversion rate.

Google Page Speed Evolution

2010
Page Speed becomes official ranking factor
2015
Mobile-First-Indexing announced
2018
Mobile Speed Update
2020
Core Web Vitals introduced
2021
Page Experience Update
2023
Interaction to Next Paint (INP) as new Core Web Vital
2025
Extended Performance Metrics

Core Web Vitals - The Most Important Performance Metrics

Core Web Vitals are the three most important performance metrics that Google uses for ranking:

1. Largest Contentful Paint (LCP)

LCP measures the time until the largest visible element of a page is loaded. The value should be under 2.5 seconds.

LCP Benchmarks

Good: < 2.5 seconds
Needs improvement: 2.5-4.0 seconds
Poor: > 4.0 seconds

2. First Input Delay (FID)

FID measures the time between the first user interaction and browser response. The value should be under 100 milliseconds.

3. Cumulative Layout Shift (CLS)

CLS measures the visual stability of a page. The value should be under 0.1.

4. Interaction to Next Paint (INP)

INP is the new Core Web Vital that replaces FID. It measures response time to user interactions and should be under 200 milliseconds.

Metric
Core Web Vital
Traditional
Meaning
Load Time
LCP
Page Load Time
Perceived Load Time
Interactivity
INP
FID
Responsiveness
Stability
CLS
Layout Shift
Visual Stability

Performance Metrics in Detail

Lab Data vs. Field Data

Aspect
Lab Data
Field Data
Usage
Data Source
Controlled Environment
Real Users
Development vs. Monitoring
Consistency
High
Variable
Tests vs. Reality
Device Variety
Limited
Complete
Local Tests vs. Global
Network Conditions
Simulated
Real
Artificial vs. Natural

Other Important Performance Metrics

  • First Contentful Paint (FCP): Time until first visible content
  • Time to Interactive (TTI): Time until page is fully interactive
  • Speed Index: Speed of visible content
  • Total Blocking Time (TBT): Time when main thread is blocked

Performance Optimization Techniques

1. Image Optimization

5 Steps for optimal image performance:

1. Choose format (WebP, AVIF)
2. Compression
3. Responsive Images
4. Lazy Loading
5. CDN

Modern Image Formats:

  • WebP: 25-35% smaller files than JPEG
  • AVIF: 50% smaller files than JPEG
  • SVG: For icons and simple graphics

2. Code Minification

8 Points for optimized code:

  • Minify CSS
  • Minify JavaScript
  • Compress HTML
  • Remove unused CSS
  • JavaScript bundling
  • Tree Shaking
  • Code Splitting
  • Dead Code Elimination

3. Caching Strategies

Browser Caching:

  • Static Assets: 1 year
  • HTML Pages: 1 hour
  • API Responses: 5 minutes

Server-Side Caching:

  • Redis for dynamic content
  • Memcached for session data
  • CDN for static assets

4. Critical CSS

Critical CSS contains the styles needed for above-the-fold rendering. This reduces render-blocking resources.

6 Steps for Critical CSS:

1. Identify above-the-fold
2. Extract CSS
3. Embed inline
4. Load remaining CSS asynchronously
5. Preload for CSS
6. Monitoring

5. Resource Hints

  • Preload: Preload important resources
  • Prefetch: Load resources for next page
  • Preconnect: Prepare DNS lookup and connection
  • Dns-prefetch: Speed up DNS resolution

HTTP/2 and HTTP/3

HTTP/2 Advantages

  • Multiplexing: Multiple requests over one connection
  • Server Push: Proactive sending of resources
  • Header Compression: Reduced overhead
  • Binary Protocol: More efficient processing

HTTP/3 Advantages

  • QUIC Protocol: Faster connection establishment
  • Multiplexing without Head-of-Line-Blocking
  • Better performance with packet loss
  • Integrated encryption
Feature
HTTP/1.1
HTTP/2
HTTP/3
Multiplexing
No
Yes
Yes (improved)
Server Push
No
Yes
Yes
Header Compression
No
HPACK
QPACK
Transport Protocol
TCP
TCP
QUIC

Performance Monitoring and Tools

Google PageSpeed Insights

Free tool from Google for performance analysis with lab and field data.

Google Lighthouse

Open-source tool for comprehensive website audits with performance ratings.

WebPageTest

Detailed performance analysis with various locations and devices.

Chrome DevTools

Integrated browser tools for performance debugging and optimization.

Performance Monitoring Categories:

  • Lab Testing: Lighthouse, PageSpeed Insights
  • Field Monitoring: Google Analytics, Real User Monitoring
  • Debugging: Chrome DevTools, WebPageTest
  • Continuous Monitoring: New Relic, DataDog

Mobile Performance

Mobile Performance is particularly important as Google uses Mobile-First-Indexing and mobile devices often have slower connections.

Mobile-specific Optimizations

  • Touch-optimized elements
  • Reduced data transfer
  • Progressive Web App (PWA) features
  • AMP (Accelerated Mobile Pages)

Mobile Performance Development:

2015
Mobile-Friendly Update
2016
Mobile-First-Indexing announced
2018
Mobile Speed Update
2021
Page Experience Update
2023
Mobile Performance as main factor

Performance Budget

A Performance Budget defines limits for various resources to achieve the desired performance.

Resource
Budget
Reasoning
JavaScript
< 200 KB
Reduce parse time
CSS
< 50 KB
Minimize render-blocking
Images
< 1 MB
Optimize load time
Web Fonts
< 100 KB
Avoid FOIT

Common Performance Problems

1. Render-Blocking Resources

CSS and JavaScript that block rendering should be optimized or loaded asynchronously.

2. Unoptimized Images

Large image files without compression or modern formats significantly slow down load time.

3. Too Many HTTP Requests

Each request costs time. Combine resources and use spriting techniques.

4. Missing Caching Headers

Without caching, resources are reloaded on every visit.

5. Third-Party Scripts

External scripts can significantly impact performance.

Common Problems and Solutions:

  • Problem: Render-Blocking CSS → Solution: Critical CSS + Async Loading
  • Problem: Large Images → Solution: WebP/AVIF + Compression
  • Problem: Many Requests → Solution: Bundling + Spriting
  • Problem: No Caching → Solution: Set Cache Headers
  • Problem: Third-Party → Solution: Lazy Loading + Monitoring

Performance Testing Strategies

1. Continuous Monitoring

Implement continuous performance monitoring with tools like Google Analytics or Real User Monitoring.

2. Automated Tests

Integrate performance tests into your CI/CD process with tools like Lighthouse CI.

3. A/B Testing

Test performance optimizations with A/B tests to measure impact on rankings.

4. Regular Audits

Conduct monthly performance audits to detect deteriorations early.

Future of Performance

Core Web Vitals Evolution

Google continuously expands Core Web Vitals and adjusts thresholds.

New Performance Metrics

  • Interaction to Next Paint (INP) replaces FID
  • Extended Mobile Metrics
  • Privacy-focused Performance Measurements

AI-powered Optimization

Machine Learning is increasingly used for automatic performance optimizations.