Hi James Besides the discussion group at https://talk.tiddlywiki.org, there are more developer-oriented discussions at https://github.com/Jermolene/TiddlyWiki5
To answer your question, you'll need to make a Blob Url of the content of the tiddler. The closest example in the core code is probably here where we a Blob Url is used to load a binary Wasm tiddler. In your case, the tiddler is plain text so the blob construction will be simpler. https://github.com/Jermolene/TiddlyWiki5/blob/698356419429ca37b62e5e04fe18df65c1d92027/plugins/tiddlywiki/sqlite3store/init-sqlite3.js#L37-L43 Best wishes Jeremy On Wednesday, June 26, 2024 at 1:37:33 PM UTC+1 james.m...@gmail.com wrote: > 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 ( > https://developer.mozilla.org/en-US/docs/Web/API/Worker) > > 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(..) > -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/92bb0dc6-982f-44b1-aa17-87ab16d60ad6n%40googlegroups.com.