3 ms·
> the browser would still have to download each dependency before they can resolve their transitive dependencies. The endgame of that train of thought is somet
by spion 8y ago
> the browser would still have to download each dependency before they can resolve their transitive dependencies.
The endgame of that train of thought is something like https://mariusgundersen.net/module-pusher/ https://mariusgundersen.net/module-pusher/
- pygy_ 8y agoIndeed, and it can even be done with HTTP/1: https://jacquesmattheij.com/the-several-million-dollar-bug/ https://jacquesmattheij.com/the-several-million-dollar-bug/ tl;dr: a smart server can start pushing dependencies as soon as the request for a module comes in. Even with HTTP/1, the browser will handle a response that came before the matching request.