TL;DR
Browsers typically discover HTTP/3 support through an Alt-Svc header, which requires an initial connection, causing a delay. The savearoundtrip tool allows browsers to check for HTTP/3 support directly via an HTTPS DNS record, enabling immediate use of HTTP/3 on the first connection.
✦ Why It Matters
Engineers can implement HTTPS DNS records to reduce latency and improve user experience with HTTP/3.
Key Takeaways
Full Summary
Browsers can identify a website's support for HTTP/3, a faster protocol, either by connecting through HTTP/1 or HTTP/2 and reading the Alt-Svc (Alternative Service) header or by querying an HTTPS DNS record. The savearoundtrip tool was developed to publish an HTTPS DNS record that advertises HTTP/3 support, allowing browsers to utilize HTTP/3 immediately without waiting for a round trip.
This tool uses Cloudflare's DNS-over-HTTPS endpoint to perform the lookup, while a small open-source backend checks the Alt-Svc header and conducts a live HTTP/3 handshake using quic-go. A round trip can introduce latency ranging from 5 to over 150 milliseconds, which can significantly affect user experience.
By using this method, the first connection can be established faster, improving perceived performance. The implications for engineers include the ability to enhance web application responsiveness and user satisfaction by implementing this approach.
Related