Third-party script loading, document.write warning
Unanswered
Blue swimming crab posted this in #help-forum
![Avatar](https://cdn.discordapp.com/embed/avatars/0.png)
Blue swimming crabOP
When I‘m loading a third-party script, I‘m getting the following warning:
12 Replies
![Avatar](https://cdn.discordapp.com/embed/avatars/0.png)
Blue swimming crabOP
![Image](https://cdn.discordapp.com/attachments/1155884671226351616/1155884759147360286/IMG_1410.png)
![Avatar](https://cdn.discordapp.com/avatars/657067112434499595/aff4eeb34922ca980b0d5fbb5bc60c21.webp?size=256)
risky
you shouldn't really be using 3rd party scripts that can mess with the dom with react because it can confuse both parties
what is this plugin?
![Avatar](https://cdn.discordapp.com/embed/avatars/0.png)
Blue swimming crabOP
It‘s an external script from a partner
I need this script
![Avatar](https://cdn.discordapp.com/avatars/657067112434499595/aff4eeb34922ca980b0d5fbb5bc60c21.webp?size=256)
risky
and are you using next.js?
![Avatar](https://cdn.discordapp.com/embed/avatars/0.png)
Blue swimming crabOP
Yes
![Avatar](https://cdn.discordapp.com/avatars/657067112434499595/aff4eeb34922ca980b0d5fbb5bc60c21.webp?size=256)
risky
and how are you importing this script
![Avatar](https://cdn.discordapp.com/embed/avatars/0.png)
Blue swimming crabOP
With the script implementation from Next.js
I‘ve added the script in a component. It will be loaded, but then the warnings are still existing, because I think the script will load another script
![Avatar](https://cdn.discordapp.com/avatars/657067112434499595/aff4eeb34922ca980b0d5fbb5bc60c21.webp?size=256)
risky
something in your script is doing something... idk if your partner is expecting this to work in nextjs/react tho
![Avatar](https://cdn.discordapp.com/avatars/657067112434499595/aff4eeb34922ca980b0d5fbb5bc60c21.webp?size=256)
risky
@Blue swimming crab i would say that you should ask your partner if it should work with react...