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

Switched from XMLHttpRequest to fetch with try/catch #995

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from

Conversation

seisiuneer
Copy link
Contributor

No description provided.

@seisiuneer
Copy link
Contributor Author

In my testing with large number of sample reads, using fetch() instead of XMLHttpRequest appears to be faster overall.

Not sure if it's related to better use of multithreading or perhaps the sample decoding happening async, but with combinations of both the standard and my custom soundfonts, this seems faster to load all the samples.

Tested on my Mac with Safari, Chrome, Firefox, as well as in mobile Safari on my iPad Pro and iPhone 14 Pro Max.

Allows for simple fixup of bad stems on combined staves by adding 

stems=auto

to the V: voice declaration.
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

Successfully merging this pull request may close these issues.

None yet

1 participant