Javascript webworker | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
0

Javascript webworker

Can webworkers be used in code playground? If so, how are they implemented?

14th Jun 2021, 12:07 PM
David
1 ответ
+ 1
yes, they could, but that's tricky, as web workers require to be loaded from external files: you must simulate using exrternal files with converting code string to blob, generate the url associated with the blob data and dynamically append the script node to your page ;P
14th Jun 2021, 3:41 PM
visph
visph - avatar