Does inline javascript block the UI thread?

后端 未结 3 1756
感情败类
感情败类 2021-01-22 13:38

I read this nice article on how external scripts block the UI thread but it wasn\'t clear to me whether the blocking is actually due to the presence of the

3条回答
  •  长情又很酷
    2021-01-22 14:21

    Any loading of a JS file or any execution of any JS (whether in an external file or inline) will block the UI thread.

    The exception for the

提交回复
热议问题