Javascript webworker | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite

Javascript webworker

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

14th Jun 2021, 12:07 PM
1 Réponse
+ 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 - avatar