Skip to content

Conversation

@GyeongHoKim
Copy link

Closes #202

While it is better to instantiate this right away correctly, people might attempt to add the script twice per site or even once per embed if used multiple times per page. Checking if it's already defined would silence the browser console.

I also agree with that.

Also, many design system libraries such as shoelace or lion.js

already use this patterns to prevent double registration of their components

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Prevent attempted double registration of the web-component

1 participant