# JavaScript (ES6) + HTML, <s>77</s> 74 bytes <!-- language: lang-js --> f=c=>setTimeout(f,250,-~c%4,o.value="Loading... "+"|/-\\"[~~c]) <!-- language: lang-html --> <input id=o --- ## Try It <!-- begin snippet: js hide: false console: true babel: false --> <!-- language: lang-js --> (f=c=>setTimeout(f,250,-~c%4,o.value="Loading... "+"|/-\\"[~~c]))() <!-- language: lang-html --> <input id=o> <!-- end snippet -->