I've got a loading gif that I want to install on my website. This is the code I have so far. I tried adding in a url of the file to the tag #loader in the css and it didn't work. How do I do it?
HTML:
<span id="loader">Loading...</span>
<script>
window.onload = () => document.querySelector("#loader").remove();
</script>