Good morning all.
I have a CPU-intensive data operation that I’m trying to spread across multiple CPUs in TiddlyWiki using a Web Worker (Worker - Web APIs | MDN)
I have created a server-side library module and a client-side library module. The client-side constructor of the worker is supposed to contain a URL to the server library
var w = new Worker("$:/core/modules/libraries/webworker-server.js");
However, this generates an error “Security Error: Content at file:///home/james/Desktop/Crunchy%20RPG/experiment.html may not load data from file:///home/james/Desktop/Crunchy%20RPG/$:/core/modules/libraries/webworker-server.js.”
Not sure how to reference the server library internal to the TiddlyWiki. This works fine for require(…)