4 ms·
Assuming apps composed of light weight micro-libs I tend to find apps: 1) Miss taking advantage of browser capability to parallelize downloads, leading to lost
by jhabdas 8y ago
Assuming apps composed of light weight micro-libs I tend to find apps:
1) Miss taking advantage of browser capability to parallelize downloads, leading to lost real time in most browsing contexts.
2) Make it difficult if not practically impossible to leverage before domready cycles in the event loop.
Is it stable to detatch from the load event in the case script is not the initiatitor? Yes, unless one can reasonably expect document body to close (no more writes) at some real time after external downloads complete. But that potential pitfall, in any case, can be controlled with a deferred bound to the domready event.
What I have witnessed, however, is the browser tends to do a better job optimizing for scripts loaded over HTTPS in a way fetch cannot when controlled by the implementation.