URL: /rules/perf/http2

---
title: "HTTP/2"
description: "Checks for HTTP/2 protocol support"
---

Checks for HTTP/2 protocol support

| | |
|---|---|
| **Rule ID** | `perf/http2` |
| **Category** | [Performance](/rules/perf) |
| **Scope** | Per-page |
| **Severity** | info |
| **Weight** | 3/10 |

## Solution

HTTP/2 enables multiplexing, header compression, and server push for faster page loads. Most modern web servers and CDNs support HTTP/2 out of the box. Requires HTTPS. Check your server/CDN documentation to enable it. HTTP/3 (QUIC) provides even better performance.

## Enable / Disable

### Disable this rule

```toml squirrel.toml
[rules]
disable = ["perf/http2"]
```

### Disable all Performance rules

```toml squirrel.toml
[rules]
disable = ["perf/*"]
```

### Enable only this rule

```toml squirrel.toml
[rules]
enable = ["perf/http2"]
disable = ["*"]
```
