<script>document.querySelector('video').addEventListener('ended', function () {
console.count('loop restart');
this.play();
})</script>
<script>document.querySelector('video').addEventListener('ended', function () {
console.count('loop restart');
this.play();
})</script>