Skip to content

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

@aaronsheldon

Description

@aaronsheldon

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions