3 ms·
> I make no external calls, everything needed to load this page is contained in the HTML. Wont that make your webpage load slower?
by smegel 10y ago
> I make no external calls, everything needed to load this page is contained in the HTML.
Wont that make your webpage load slower?
- bdcravens 10y agoThat one file, but presumably it's loading assets that would be the same total size if they were split. Loading 100k from one source is faster than the same aggregate size from multiple connections.
- smegel 10y agoExcept if you only need the first 50k to render the page, and can wait for 50k of Javascript to come later, your page is going to display a lot faster. Standard technique. > Loading 100k from one source is faster than the same aggregate size from multiple connections. Usually doing things in parallel is faster than doing them serial. That's why HTTP2 loads slower than HTTP1 - you are sucking everything through single TCP pipe, even though it is multiplexing within.