is there any easy way to create a code: if URL changes or clicked on a link show div (like loading gif 3-sec) then show the page? Kinda like blank white page with loading gi
$('a').click(function (e) {
e.preventDefault(); // prevent default anchor behavior
var goTo = this.getAttribute("href"); // store anchor href
// do something while timeOut ticks ...
setTimeout(function(){
window.location = goTo;
}, 3000); // time in ms
});