You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Every time the ngx-turnstile component is used, a script tag is added to the head section of the HTML. This leads to multiple script tags being injected, which can cause performance issues and potential conflicts.
Reproduction Steps:
Add the ngx-turnstile component to a page or component.
Inspect the head section of the HTML document.
Observe the script tag: <script src="https://challenges.cloudflare.com/turnstile/v0/api.js?render=explicit&onload=onloadTurnstileCallback" async="" defer=""></script>
Navigate to another page or component where ngx-turnstile is used.
Inspect the head section again and notice the duplication of the script tag.
Expected Behavior:
The script tag should be added to the head section only once, regardless of how many times the ngx-turnstile component is used.
Actual Behavior:
Each use of the ngx-turnstile component results in an additional script tag being injected into the head section.
Possible Solution:
Implement a check to ensure the script is only added once to the head section, regardless of how many times the ngx-turnstile component is instantiated.
Error in console:
[Cloudflare Turnstile] Turnstile already has been loaded. Was Turnstile imported multiple times?.
The text was updated successfully, but these errors were encountered:
Every time the ngx-turnstile component is used, a script tag is added to the head section of the HTML. This leads to multiple script tags being injected, which can cause performance issues and potential conflicts.
Reproduction Steps:
<script src="https://challenges.cloudflare.com/turnstile/v0/api.js?render=explicit&onload=onloadTurnstileCallback" async="" defer=""></script>
Expected Behavior:
The script tag should be added to the head section only once, regardless of how many times the ngx-turnstile component is used.
Actual Behavior:
Each use of the ngx-turnstile component results in an additional script tag being injected into the head section.
Possible Solution:
Implement a check to ensure the script is only added once to the head section, regardless of how many times the ngx-turnstile component is instantiated.
Error in console:
[Cloudflare Turnstile] Turnstile already has been loaded. Was Turnstile imported multiple times?.
The text was updated successfully, but these errors were encountered: