2,288 questions
1
vote
0
answers
72
views
Webworker offscreen-canvas performance issues
I have two canvases inside the body of an HTML-file. I access the first canvas normally from an main thread script and perform an animation with requestAnimationFrame. The second canvas should draw ...
0
votes
0
answers
21
views
Loading a model with GLTFLoader through Web Worker causes mesh deformation on SkinnedMesh
My page is taking a long time to load because of the loading of the models that I do as soon as the page loads
During loading in the main thread, page interactions, such as hover effects, etc., stop ...
0
votes
0
answers
79
views
Error getting data with fetch in web worker
I'm trying to get data in the order of bybit -> cloudflare worker -> google scripts. I got the value from bybit to the worker via API, but when I get the value from the worker via google scripts,...
0
votes
0
answers
30
views
get sharedwebworker to run in react / vite / typescript
i am struggeling to get a shared web worker to run.
i am using a react typescript app using vite.
in one component i have something like this:
useEffect(() => {
if (!map) return
// ...
1
vote
1
answer
32
views
Angular 17: What use to to fetch data at the app start moment?
there is an issue.
I have Angular 17 app.
There is a need to get a user data by http request as to keep it in localStorage and use everywhere.
The request should be send once only and as earlier as ...
0
votes
0
answers
126
views
How to place canvas under Openlayers layers with web workers
I am working on a project using OpenLayers with Vue3, where I have a map containing layers with features. Additionally, I have a canvas that I frequently draw on.
I need the canvas to be positioned ...
1
vote
0
answers
54
views
Why chrome devtools cannot override content of worker request
you can see that "override content" is grayed out. The request has a gear icon, indicating that this is a request via Worker.
While for the other request, override content is enabled.
Why ...
0
votes
0
answers
52
views
Is it possible to pass a Comlink-proxied object to a proxied function?
This question relates to the Comlink WebWorker library and specifically to the usage of Comlink.proxy. Consider the following situation:
worker.ts
import * as Comlink from 'comlink';
export class Foo ...
2
votes
0
answers
147
views
Using whisper.cpp in SvelteKit
I'm trying to integrate the Whisper.cpp stream web demo into my SvelteKit project for local browser-based speech recognition. I've analyzed their implementation which uses WebAssembly with a worker ...
0
votes
0
answers
29
views
Window getting crashed even after using webworker usePdf
I am using react-pdf for rendering a table using usePdf but due to some reason the whole window is getting crashed every time but as soon as i comment few things it works fine.
const TestTable = ({
...
0
votes
0
answers
177
views
How to extract text from scanned PDF files, which could work in both web workers and NodeJS too
I want to extract text from PDF files particularly only those that are made up of scanned images, I tried to use PDF.js methods with Tesseract.js OCR, but it won't work in web workers, although this ...
0
votes
1
answer
245
views
How to import modules in a web worker.js file using a React Vite app
I'm getting an error when trying to import modules in a web worker.js file using the Vite React framework.
I have my front-end component setup to invoke the web worker:
const worker = new Worker(new ...
1
vote
1
answer
76
views
Why is the worker's onmessage executing after a macro task?
Event loop execution order
I'm studying how the Javascript event loop works for a future presentation, but I've come across an unexpected behavior with the information I have so far. Simply put, when ...
0
votes
0
answers
81
views
using stockfish.js by nmrugg to build a chess game review site
link : roadtomagnus
I’m building a chess game review application using StockFish.js (an in-browser engine from NNRUG) with multiple web workers to speed up the evaluation process.
To reproduce the ...
0
votes
1
answer
51
views
How can I change the color of the svg?
I am using canvg inside of a Web Worker to draw an SVG into an OffscreenCanvas.
I will draw the SVG in black. Is it possible to apply a color to the SVG without modifying the SVG itself or using CSS? ...