Is JavaScript multithreaded?

前端 未结 9 2022
误落风尘
误落风尘 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:26

    Currently JavaScript is not multithreaded, but the things will change in near future. There is a new thing in HTML5 called Worker. It allows you to do some job in background.

    But it's currently is not supported by all browsers.

提交回复
热议问题