The order of network fixes
Remove origins first, reuse connections second, compress third. Each is a server or markup change, and each is cheaper to get wrong than a code change.
Where keep-alive matters
On HTTP/1, requests to the same origin share a connection. On HTTP/2 they share it and multiplex. Either way, same-origin is the thing that makes the handshake amortize.