<style>
div{
display: none;
}
</style>
<div>Здесь гифка</div>
<script>
var div = document.querySelector('div');
var xhr = new XMLHttpRequest();
xhr.open('GET', 'http://javascript.ru');
xhr.send(null);
div.style.display = "block";
xhr.onreadystatechange = function () {
if (xhr.readyState == 4) {
div.style.display = 'none';
}
}
</script>