BuilderIO / partytown

Relocate resource intensive third-party scripts off of the main thread and into a web worker. πŸŽ‰

Home Page:https://partytown.builder.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

kkopp001 opened this issue Β· comments

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