nuxt / scripts

Third-Party Scripts Meets Nuxt Developer Experience.
https://scripts.nuxt.com
MIT License
269 stars 31 forks source link

[Question]: Usage with web workers (partytown) #56

Closed MuhammadM1998 closed 2 months ago

MuhammadM1998 commented 4 months ago

Hello, Thanks for great work I'm looking forward to use the module

I remember a strategy or a similar option being discussed that let the user specify where to load the script. A possible option would be a worker to offload the 3rd party script entirely from the main thread. I can't find that discussion to link it.

Is there a way to use a worker for the scripts? Also will there be some kind of integration with tools like partytown? Thanks!

harlan-zw commented 2 months ago

Hi, thanks for the question. I've made an issue here to track further https://github.com/nuxt/scripts/issues/182.

It is not something we're looking to support for the initial public release.