Skip to main content
1 of 4
Shaggy
  • 43.5k
  • 4
  • 36
  • 94

#JavaScript (ES6) + HTML, 77 bytes

f=(c=0)=>setTimeout(f,250,-~c%4,o.innerText="Loading... "+"|/-\\"[c])
<p id=o>

##Try It

(f=(c=0)=>setTimeout(f,250,-~c%4,o.innerText="Loading... "+"|/-\\"[c]))()
<p id=o>

Shaggy
  • 43.5k
  • 4
  • 36
  • 94