fathom-client
fathom-client copied to clipboard
Fathom script loaded twice
I followed the instructions for adding this to app router. I see the script being loaded twice.
I wonder if this is a React Strict Mode thing. Can you try disabling strict mode and see if this behavior stops? https://nextjs.org/docs/pages/api-reference/next-config-js/reactStrictMode
It's probably worth making our load function be a bit smarter about only injecting the script if it's not present on page already.
I wonder if this is a React Strict Mode thing. Can you try disabling strict mode and see if this behavior stops? https://nextjs.org/docs/pages/api-reference/next-config-js/reactStrictMode
It's probably worth making our
loadfunction be a bit smarter about only injecting the script if it's not present on page already.
@derrickreimer I can confirm that when I disable strict mode, the script is only loaded once.
Thank you! I can confirm this is fixed on my production website.