|
|
|
|
|
by evmar
1206 days ago
|
|
I worked on JS infra for Google. One thing we found in this space is that when your apps get very large in terms of number of source files, there is a developer-impacting load time cost to the unbundled approach. That is, your browser loads the entry point file, then parses it for imports and loads the files referenced from there, then parses those for imports and so on. This process is not free. In particular, even when modules are cached, the browser still will make some request with If-Modified-Since header for each file, and even to localhost that has time overhead cost. This impact is greater if you are developing against some cloud dev server because each check costs a network round-trip. However this may only come up when you have apps with many files, which Google apps tended to do for protobuf reasons. |
|
I've only seen this from afar when using the Maps JS API.