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
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Would this work for jquery? I want to render jquery library and not let it block page render. Defer tag does not work.
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