4 ms·
As an old Javascript developer, I don't see how the browser could do this without making legitimate websites suffer. You have the freedom to run JS code at any
by dustinmoorenet 10y ago
As an old Javascript developer, I don't see how the browser could do this without making legitimate websites suffer. You have the freedom to run JS code at any point in the DOM load, after an amount of time (setInterval or setTimeout) or after user interaction. And you can start and stop audio and/or video through JS. So you can't restrict automatically playing media without also restricting the ability to programmatically control the media for legitimate reasons, like media control buttons and hot-keys.
I think it is best to avoid shitty websites. My short list: Facebook, and TV network websites and their affiliates. There are lots of websites that do the right thing.