Skip to content

Web Workers #4416

Closed Answered by sergiodxa
LukiFr asked this question in Q&A
Oct 25, 2022 · 3 comments · 6 replies
Discussion options

You must be logged in to vote

Yes, create a .js file inside the public folder and follow https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers to load it

Remember to only use the WebWorker client-side, so it must happen in entry.client, inside useEffect or inside an event handler.

Replies: 3 comments 6 replies

Comment options

You must be logged in to vote
2 replies
@nyoung697
Comment options

@JoshMatthew
Comment options

Comment options

You must be logged in to vote
1 reply
@sergiodxa
Comment options

Comment options

You must be logged in to vote
3 replies
@LukiFr
Comment options

@nyoung697
Comment options

@sergiodxa
Comment options

Answer selected by MichaelDeBoey
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants