News for hackers. Stuff that matters.
Re:Managing Async Dependencies with JavaScript by lewisjoe on Saturday May 20, 2017 @03:34AM (#14381409)
Curious question: Can you explain a bit more on "will block behind the cssdom due to the way it injects"

As far as I know, requireJS doesn't do XHR requests and evals. That sounds ugly. I think it dynamically injects a script tag and loads the module. I maybe wrong.

Either way, how's it a blocking one?

So, the only thing that makes fetchInject, differ from requireJS is the non-blocking way. Is my understanding correct?

Re:Managing Async Dependencies with JavaScript by thehandofkwll on Saturday May 20, 2017 @10:03PM (#14385354)
This article by an engineer at Google explains it pretty well. My own testing has shown the same results. https://www.igvita.com/2014/05/20/script-injected-async-scri...
Re:Managing Async Dependencies with JavaScript by dgoldstein0 on Saturday May 20, 2017 @03:51AM (#14381448)
also wondering about the cssom comment. I can confirm that requirejs works by injecting <script> tags - <script async> to be precise. requirejs' api isn't promise based, but that's mostly an aesthetic concern.

btw you seem to imply that requirejs blocks - what do you mean by that?