I don't know if it's still the case, but a while back Firefox would allow muted looping videos to auto play, basically like an animated gif. However, if the video had an audio track (even muted) it would keep the computer from sleeping.
Some of adafruits documentation pages had exactly this combination, so leaving a single page of documentation open would keep my computer from automatically sleeping.