• Курсы
  • Компилятор кода
  • Обсуждения
  • Цены
  • Teams
Menu
0

Why is there a small delay to the sound effect?

https://code.sololearn.com/WcjTk4KZJXjX/?ref=app

javascriptsound
19th Apr 2021, 2:52 PM
Karak10
Karak10 - avatar
1 ответ
+ 9
Hello there! :) Your code does not work well, because one time you forgot to add a '2' to the variable name so it's getting a console error. https://code.sololearn.com/WFSq8wee00p9/?ref=app Here I found 2 articles about it, hope they're helpful :) https://stackoverflow.com/questions/15079013/play-a-javascript-sound-file-without-a-delay https://stackoverflow.com/questions/28977346/html-5-audio-play-delay-on-mobile
19th Apr 2021, 4:07 PM
Matthew
Matthew - avatar

Часто задают такие вопросы?

Учитесь эффективнее, бесплатно:

  • Введение в Python

    7.1M учащихся

  • Введение в Java

    4.7M учащихся

  • Введение в C

    1.5M учащихся

  • Введение в HTML

    7.5M учащихся

Смотреть все курсы
Актуальное сегодня
I've a HTML code question
1 Votes
C++
1 Votes
How my gradient is so mess I code in vscode and copied here to ask some questions please help me with this one too
0 Votes
Offline AI Model with Fast Voice Chat
2 Votes
Please tell me about methods
1 Votes
HELP ME LEARN
0 Votes
Appointment Booking website
0 Votes
Does anyone know how to go to another "page" on the same page using the HTML button tag?
2 Votes
Give me advice
1 Votes
Mentors
1 Votes