DevPrep
  • Interview Prep
  • Projects
  • Resources
  • Pricing
  • About Us
Submit Question
DevPrep
  • Pricing
  • About Us
Submit Question
  1. Home
  2. Articles
  3. Frontend Engineering
  4. Understanding HTTP/2 and HTTP/3: What Changed and Why
XLinkedInReddit
MediumFrontend Engineering

Understanding HTTP/2 and HTTP/3: What Changed and Why

D
DevPrep Team
February 10, 2026·2 min read·0
Table of Contents
  • HTTP/1.1 Problems
  • HTTP/2 Solutions
  • Multiplexing
  • Header Compression (HPACK)
  • Server Push
  • Stream Prioritization
  • HTTP/2 Still Has a Problem
  • HTTP/3: QUIC Protocol
  • Additional Benefits
  • What This Means for Frontend

HTTP/2 and HTTP/3 fundamentally changed how browsers communicate with servers. Every frontend developer should understand these protocols.

HTTP/1.1 Problems

  • Head-of-line blocking: One slow response blocks all others on the connection
  • 6 connection limit: Browsers open max 6 TCP connections per domain
  • Header redundancy: Full headers sent with every request
  • No prioritization: Can't tell the server which resources are most important

HTTP/2 Solutions

Multiplexing

Multiple requests and responses share a single TCP connection, interleaved as binary frames. No more domain sharding hacks.

Header Compression (HPACK)

Headers are compressed and cached. Repeated headers (Cookie, User-Agent) are sent as small indices instead of full strings.

Server Push

Server can proactively send resources before the client requests them. However, this has been largely deprecated because browsers couldn't efficiently use pushed resources.

Stream Prioritization

Client can hint which resources are most important. Critical CSS and JS get priority over images.

HTTP/2 Still Has a Problem

HTTP/2 solved HTTP-level head-of-line blocking but runs on TCP. TCP treats all streams as one — a single packet loss blocks ALL streams (TCP head-of-line blocking).

HTTP/3: QUIC Protocol

HTTP/3 replaces TCP with QUIC (built on UDP). Each stream is independent — packet loss in one stream doesn't affect others.

Additional Benefits

  • 0-RTT connection: Return visitors connect instantly (vs 2-3 RTT for TCP+TLS)
  • Connection migration: Switching networks (WiFi→cellular) doesn't drop the connection
  • Built-in encryption: TLS 1.3 is mandatory, not optional

What This Means for Frontend

  • Stop concatenating files — multiplexing handles many small files efficiently
  • Stop domain sharding — one connection is better with HTTP/2
  • Use 103 Early Hints instead of Server Push
  • Preload critical resources with <link rel="preload">

Related Articles

MediumFrontend Engineering

System Design #12: Design a Multi-Step Form Wizard

7 min read
MediumFrontend Engineering

Mastering Senior-Level JavaScript Interview Concepts

2 min read
MediumFrontend Engineering

System Design #9: Design a Collaborative Text Editor

9 min read

Comments (0)

Sign in to leave a comment.

No comments yet. Be the first to comment.

Table of Contents

  • HTTP/1.1 Problems
  • HTTP/2 Solutions
  • Multiplexing
  • Header Compression (HPACK)
  • Server Push
  • Stream Prioritization
  • HTTP/2 Still Has a Problem
  • HTTP/3: QUIC Protocol
  • Additional Benefits
  • What This Means for Frontend

Series

View all Frontend Engineering articles →

Practice

  • JavaScript
  • DSA
  • Machine Coding
  • System Design

Resources

  • Learning Tracks
  • Articles
  • Roadmaps
  • Compare Concepts
  • Glossary
  • Developer Tools
  • All Questions

Company

  • About
  • Pricing

Legal

  • Privacy Policy
  • Terms of Service
DevPrep

© 2026 DevPrep. All rights reserved.