BuilderIO / partytown

Relocate resource intensive third-party scripts off of the main thread and into a web worker. 🎉
https://partytown.builder.io
MIT License
12.85k stars 426 forks source link

Partytown integration with Astro makes over 10'000 proxytown requests on page load[🐞] #576

Open kkopp001 opened 3 months ago

kkopp001 commented 3 months ago

Describe the bug

I'm using Partytown with Microsoft clarity and when I whenever I add

<script type="text/partytown"> (function (c, l, a, r, i, t, y) { c[a] = c[a] || function () { (c[a].q = c[a].q || []).push(arguments); }; t = l.createElement(r); t.async = 1; t.src = "https://www.clarity.ms/tag/" + i; y = l.getElementsByTagName(r)[0]; y.parentNode.insertBefore(t, y); })(window, document, "clarity", "script", "lpr85odovr"); </script>

to the it makes over 10'000 Proxytown requests : image

Reproduction

staging.layout.ch

Steps to reproduce

install partytown like that npx astro add partytown

add the clarity script to the head

<script type="text/partytown"> (function (c, l, a, r, i, t, y) { c[a] = c[a] || function () { (c[a].q = c[a].q || []).push(arguments); }; t = l.createElement(r); t.async = 1; t.src = "https://www.clarity.ms/tag/" + i; y = l.getElementsByTagName(r)[0]; y.parentNode.insertBefore(t, y); })(window, document, "clarity", "script", "lpr85odovr"); </script>

Browser Info

Chrome

Additional Information

No response

macit-emre commented 1 month ago

same here. (i use it inside Google tag manager, and same issue here) Screenshot 2024-05-29 at 21 21 16

waflessnet commented 3 weeks ago

idem :

image