Description
As @indefinit mentions in #39 (comment), it would be nice to support users who want to self-host the widget, as there's nothing in the widget that should explicitly require an internet connection.
We might also want to make it possible to add a data attribute to the widget's Filed as #48.<script>
tag that allows the embedder to specify a self-hosted version of p5 to use, too, since we currently retrieve that over CDN. This would allow for offline use-cases.
Aside: In his original question, @indefinit asked if it was possible to combine all the dependencies into one lib js file. Unfortunately, it's difficult to do this, as different JS needs to be loaded in different contexts--one for the widget on the embedding page, another for the widget in the iframe, and another for running the sketch in the preview pane. It's also not clear that combining everything into a single file would be efficient, since it'd prevent lazy loading.