1. Make fewer requests
1. Make fewer requests
2. Make smaller requests
1. Make fewer requests
2. Make smaller requests
3. Spread out requests
GET /records?ids=1&ids=3&ids=5&ids=7
{
data: [
{
id: 1,
name: 'One',
// ...
},
{
id: 3,
name: 'Three',
// ...
},
{
id: 5,
name: 'Five',
// ...
},
{
id: 7,
name: 'Seven',
// ...
},
]
}Ilya Grigorik, High Performance Browser Networking
WebSocket Frame Structure
http/2 Response Structure
https://github.com/mrmarkfrench/country-select-js
https://github.com/jamiebuilds/react-loadable
512Kb of data transferred over one connection
https://danluu.com/web-bloat/
let autoStream = true;
var connection = navigator.connection;
if (connection && connection.downlink < 3) {
autoStream = false;
}Currently still a draft: http://wicg.github.io/netinfo/