Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> One request per icon as done in the README is extremely wasteful.

That depends on the transport, this is one of the things that HTTP/2 (and HTTP/3) aim to fix by downloading them in parallel in a single connection.

Watch the devtools network tab: http://www.http2demo.io/



There is still a header to send. Talking about SVG that are on average 465 bytes, a 867 bytes header (as sent by GitHub[0]) is not negligible. HTTP compresses headers though, so according to [1] we can expect ~30% header transferred size/actual size ratio which brings header transferred size to ~260 bytes. Still a 56% overhead for the average icon from this collection.

[0]: https://camo.githubusercontent.com/d0518022b7a02d405ad5112a0...

[1]: https://blog.cloudflare.com/hpack-the-silent-killer-feature-...




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: