Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to handle scripts, especially with dependencies? #107

Open
LordZardeck opened this issue Aug 18, 2022 · 0 comments
Open

How to handle scripts, especially with dependencies? #107

LordZardeck opened this issue Aug 18, 2022 · 0 comments

Comments

@LordZardeck
Copy link

Is there a documented/supported way already for using JavaScript with widgets? I noticed that one of the native widgets adds some javascript in the template that loads an external file, stored on microapps.bigcommerce.com. My thinking is that one could simply have a file created and stored on the site's CDN, but then I wonder about dependencies. What if multiple widgets share the same dependencies, especially ones shared with the theme (lodash is the first thing that comes to mind).

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

No branches or pull requests

1 participant