79773413

Date: 2025-09-24 07:49:46
Score: 1.5
Natty:
Report link

I’ve built a website where, on the first load of the home page, a banner appears along with background music that autoplays. When I scroll up, the banner slides away and the sound mutes, which works perfectly.

However, I’ve noticed that if I reload the page, the audio no longer autoplays. After a lot of research, I’ve concluded that it’s almost impossible to make audio autoplay on subsequent reloads of the same page due to browser restrictions, but it can autoplay the first time the page loads.

Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: Hasnain Riaz