148

浅谈HTML5 Web Worker

 6 years ago
source link: https://juejin.im/post/59c1b3645188250ea1502e46
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
前言 众所周知,Javascript是运行在单线程环境中,也就是说无法同时运行多个脚本。假设用户点击一个按钮,触发了一段用于计算的Javascript代码,那么在这段代码执行完毕之前,页面是无法响应用户操作的。但是,如果将这段代码交给Web Worker去运行

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK