<p>I'm displaying a set of images as an overlay using Google Maps. Displaying these images should be in an endless loop but most most browsers detect this, and display a warning. </p>

<p>Is there a way to make a endless loop in JavaScript so that it isn't stopped or warned against by the browser?</p>

Try
setInterval
or
setTimeout
.
Here is an example:
```
```
(show = (o) => setTimeout(() => {

  console.log(o)
  show(++o)

}, 1000))(1);
```
```
```
```
.as-console-wrapper { max-height: 100% !important; top: 0; }
```
```