Is JavaScript multithreaded?

前端 未结 9 1993
误落风尘
误落风尘 2020-11-27 04:23

Here\'s my issue - I need to dynamically download several scripts using jQuery.getScript() and execute certain JavaScript code after all the scripts were loaded, so my plan

9条回答
  •  时光取名叫无心
    2020-11-27 05:03

    To be clear, the browser JS implementation is not multithreaded.

    The language, JS, can be multi-threaded.

    The question does not apply here however.

    What applies is that getScript() is asynchronous (returns immediately and get's queued), however, the browser will execute DOM attached

提交回复
热议问题