While transitioning between pages, I am using a GIF image as a 'loader'. However, during the first 2 or 3 navigations, I can see the image, but for the rest of the transitions, instead of the image, I can only see the "alt" text that I have provided with a blank image box.
I suspect that the image is not loading. Please review my code.
<div id="loadinggif" class="overlay" align="center" style="display:none;">
<img src="img/gif.gif" alt="loader" height="50" width="50">
</div>
When I click on a page navigation, I use the following code:
$('#loadinggif').css('display','block');
Please take a look at my screenshots. The first one is working perfectly, while the second screenshot shows the exact problem I am currently facing.