allright im so close to giving up on this but I'll try; any of you fellas got #webpack5 to play nice with #webworker(s)? I am genuinely feeling I'm losing my mind trying to get it to work properly.

Like: exact same code, in a Vite set up it works flawlessly, in Webpack ❌💀

What is a Web Worker?

Web workers are a powerful feature in #JavaScript that allow you to run scripts
in the background, separate from the main thread of your web application.

https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API

#webworker #webdev #performance

Web Workers API - Web APIs | MDN

Web Workers makes it possible to run a script operation in a background thread separate from the main execution thread of a web application. The advantage of this is that laborious processing can be performed in a separate thread, allowing the main (usually the UI) thread to run without being blocked/slowed down.

MDN Web Docs

#Anthropic has introduced a #JavaScript-based "analysis tool" for #Claude, similar to #ChatGPT's #CodeInterpreter, enabling #code execution within the browser. Running in a secure #WebWorker, this tool can parse and visualize user-uploaded data using libraries like Lodash and Papa Parse, though with limited file handling capacity.

https://simonwillison.net/2024/Oct/24/claude-analysis-tool/

Note: I endorse this and I will enjoy muting you if you complain about it 😘

#AI #LLM #genAI #copilot

Notes on the new Claude analysis JavaScript code execution tool

Anthropic released a new feature for their Claude.ai consumer-facing chat bot interface today which they’re calling “the analysis tool”. It’s their answer to OpenAI’s ChatGPT Code Interpreter mode: Claude can …

"How to use Web Worker in React with TypeScript - DEV Community" https://dev.to/martinsolumide8/how-to-use-web-worker-in-react-with-typescript-4o79 #react #webworker
How to use Web Worker in React with TypeScript

Table of Contents What are web workers Prerequisites Initializing a project...

DEV Community

Just used a #WebWorker for the first time. It's crazy to think that you can do threading in a #WebApp.

#JavaScript #TypeScript #Angular #HordeNG

Okna przeglądarki mogą komunikować się na kilka sposobów i pewnie najprościej jest użyć wspólnego serwera. Ale można to zrobić też bez niego, a przy okazji nauczyć się czegoś nowego. Poznajcie sposób na wykorzystanie mechanizmu WebWorkerów.

#WebWorker #JavaScript #programowanie #WebDev

https://dev.to/notachraf/sharing-a-state-between-windows-without-a-serve-23an

Sharing a state between windows without a server

Recently, there was a gif trending on social networks displaying an amazing piece of art made by...

DEV Community
Why Your Website Should Work Offline (And What You Should Do About It)

Yes, you read it right. Offline! Strange, hun? But there are many reasons you may want to do...

DEV Community
Using Web Workers - Web APIs | MDN

Web Workers are a simple means for web content to run scripts in background threads. The worker thread can perform tasks without interfering with the user interface. In addition, they can make network requests using the fetch() or XMLHttpRequest APIs. Once created, a worker can send messages to the JavaScript code that created it by posting messages to an event handler specified by that code (and vice versa).

MDN Web Docs

Are there any web frameworks out there which push the majority of user code off the main thread?

I'm thinking of an architecture such as automatically loading your #React components into a #WebWorker, doing all rendering off main thread, and then having the framework pass the VDom back to the main thread to be reconciled on the actual document.

I know various frameworks have experimented with web workers (including #Angular), but I don't know if any quite used this kind of approach? I'm curious if anyone has tried this and what the outcome was.

Wie falsch die/das/der # im schließenden HTML Tag aussieht... Mahahaa. Anyway, fump. #webworker