CodeShala / CodeShala/codeshala.org

Migrate from HTTP/1.1 to HTTP/2

Open
#25 0 comments 0 reactions 1 assignee Claimed by @vipinkhushu View on GitHub
Optimization
Dominant language
JavaScript
Stars
2
Forks
6
PR merge metrics
No merged PRs in 30d

Description

The benefits of **H2** include:

- **Multiplexing:** Allows browsers to include multiple requests in a single TCP connection which in turn enables browsers to request all the assets in parallel.
- **Server push**: Servers can push web assets (CSS, JS, images) before a browser knows it needs them which speeds up page load times by reducing number of requests.
- **Stream priority**: Allows browsers to specify priority of assets. For example, browser can request HTML first to render it before any styles or JavaScript.
- **Header compression**: All HTTP/1.1 requests have to have headers which are typically duplicate the same info, while H2 forces all HTTP headers to be sent in a compressed format.
- **De facto mandatory encryption:** Although the encryption is not required, most major browsers implement H2 only over TLS (HTTPS).

PS: Try to implement Server Push Functionality

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.