DEV Community

Discussion on: Introducing Partytown 🎉: Run Third-Party Scripts From a Web Worker

Collapse
 
saucyofficiale profile image
Saucy

Would this work for jquery? I want to render jquery library and not let it block page render. Defer tag does not work.

Collapse
 
adamdbradley profile image
Adam Bradley

Yes it should be able to work, however, the goals of Partytown may not be the same of why you'd like jquery to run in the web worker. If rendering your webpage is dependent on jquery working immediately, then Partytown may not be the best for this. However, if jquery is only handling click events, then it could be worth experimenting with. Please test it out and let us know how it goes on the the repo issues! Thanks