what happens in asynchronous loading of webapps if some script delete the previously loaded or included scripts?

后端 未结 2 611
栀梦
栀梦 2021-01-23 17:23

the question is: what happens in asynchronous loading of webapps if some script delete the previously loaded or included scripts?

Let have several scripts included:

2条回答
  •  花落未央
    2021-01-23 17:25

    The only thing that happens is that the source code in the scripts goes away.

    The scripts have already been parsed and executed, which creates Javascript objects (e.g. function objects), and those objects doesn't go away when you remove the source code.

提交回复
热议问题