Skip to main content

Sounds don't play at startup under certain (or "completely random") conditions

September 24, 2019

Sounds don't play at startup under certain (or "completely random") conditions

You may notice that sound effects or music don't play at startup sometimes. This is due to browsers' behavior: they won't let you play any sound unless a user interacted with a game. Moving a mouse pointer over a game is enough, so it looks like it works in one case and not in the others. That's not something ct.js can change, and not exclusive to ct.js as well, but there are a number of workarounds to spawn sounds reliably: