We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I would suggest caching the sound effect after the first request. This will prevent the browser from loading the file more than one time.
As you can see, I hovered the logo and the sound file got downloaded on every event.
The text was updated successfully, but these errors were encountered:
hmmmm, how do you cache sounds?
Sorry, something went wrong.
I'm not quite sure this will work but my suggestion would be something like this:
onhover (look in array for filename) if (not exists) load sound add filename to array play sound otherwise play sound
This would be solved by the method I mention under #2
+1
No branches or pull requests
I would suggest caching the sound effect after the first request.
This will prevent the browser from loading the file more than one time.
As you can see, I hovered the logo and the sound file got downloaded on every event.
The text was updated successfully, but these errors were encountered: