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

Question: Using Jocly Browser Module from a JS CDN? #40

Open
aaronsheldon opened this issue Jan 25, 2022 · 0 comments
Open

Question: Using Jocly Browser Module from a JS CDN? #40

aaronsheldon opened this issue Jan 25, 2022 · 0 comments

Comments

@aaronsheldon
Copy link

aaronsheldon commented Jan 25, 2022

Hi there,

I'm working on wrapping a Bubble plugin around the Jocly modules. Due to the limitations of Bubble I have to load the Jocly Browser Module from a JS CDN. Now because the Jocly Browser Module dynamically loads JS modules using SystemJS I am hitting CORS policy exceptions in the browser. I was wondering if you have any advice on working with this? Specifically can I address this by using SystemJS import maps, and more ambitiously using depcache to optimize loading?

If the import maps can be used to address CORS, then I can upload a customized version of browser/jocly.js to Bubble; where the require, and pathextract, are replaced with hand coding the base URL of the CDN. After that all I would need to do is reference the customized Bubble hosted jocly.js, and the CDN hosted systemjs in script tags.

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