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

Don't hardcode XHR, abstract file loader #325

Open
Paril opened this issue Jan 26, 2020 · 0 comments
Open

Don't hardcode XHR, abstract file loader #325

Paril opened this issue Jan 26, 2020 · 0 comments

Comments

@Paril
Copy link

Paril commented Jan 26, 2020

Currently, formats have hardcoded data loading from external sources via URLs which limits the uses of the library. Instead, the raw URL (as it is in the file and/or sent by the user) should be sent back to a loader of some sort which might default to XHR but can be overrided, and essentially provides a load(src) -> Promise<ArrayBuffer|string> function for loading data from any source, including zips, custom buffers, etc.

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