Skip to content

Is there a way to load external scripts / other libraries  #88

@TiborUdvari

Description

@TiborUdvari

I would like to make a test with p5.xr among other libraries. Is there an official way to do this?

I'm thinking of doing something like this if not

function addScript(src) {
  const script = document.createElement('script');
  script.src = src;
  document.head.appendChild(script);
}

addScript("path/to/your/script.js");

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions