New course! Every coder should learn Generative AI!
Try a free lesson+ 1
Why background audio isn't playing?
1 Answer
+ 5
On the JS tab, wrap all your code in a function that is executed when the page has already finished loading.
onload = () => {
// all your code
}