I don't know if this can be achieved but I'm aking because I find this kind of page transition on many websites. My questions are 2 and the following
Is that possible to make appear a loader (gif) before html is loaded and during a page transition?
And if yes,
Is that possible doing it through jQuery, AJAX and PHP?
I mean, I know how to implement a loader on page load like:
<div class="loader"><!-- whatever animated gif--></div>
<script>
$(window).load(function() {
$(".loader").fadeOut("slow");
})
</script>
But at this way, I see before a white screen, then loader and next the full page. My question is about displaying a loader before the page is changing and loading, like:
- Click on link;
- Bam: Loader displayed;
- Bam: page changes and loads in background.
- Loader disappears.
Different by this question which is referring to AJAX calls. I'm talking about html or php whatever page.