Feedback: Script worker
strategy
#36778
Replies: 3 comments 2 replies
-
We've been testing the We got the CORS error every time, even after applying the forward configuration Partytown suggests in their docs. We proxied the requests, but the Bing Search snippet coming from GTM, when present, started to throw an The idea behind Partytown is really interesting and I'm glad you guys are working on integrate that on Next.js. Thanks for the great job! We'll be looking forward to the updates and we hope to see it working in our websites soon. |
Beta Was this translation helpful? Give feedback.
-
Hey @housseindjirdeh! Thank you so much for your work, this is something I want to do since a long time now! Here is a PR where I'm loading RudderStack with Unfortunately the script isn't loading. I'm getting this error:
Any idea? Have you heard of someone successfully using Partytown to load RudderStack? |
Beta Was this translation helpful? Give feedback.
-
Hi @housseindjirdeh, thank you for your great efforts. Specifically, on the first load of the page everything works fine, but on the 2nd reload I get a 404 Not found error sending a request to get file partytown-sandbox-sw.html (http:// localhost:3000/_next/static/~partytown/debug/partytown-sandbox-sw.html?1665936200847). In Partytown's documentation they mentioned that if this request fails, then service worker is not installed correctly: Here is my
Next version: 12.3.1 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
tl.dr: Thread to collect feedback on
<Script strategy="worker" />
Details: In v12.1.1-canary.11,
next/script
introduced a newworker
strategy that allows you to relocate and execute third-party scripts in a web worker with Partytown (see documentation). This strategy is still experimental but I would like to use this thread to gather all types of feedback.Some questions that may be useful to answer (although any feedback is worth sharing):
worker
strategy for any scripts on your site?worker
strategy?Beta Was this translation helpful? Give feedback.
All reactions