Click - delay before navigating

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 gif spin 3 sec then show the page?

Thanks!

Answers


$('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
}); 

Need Your Help

Access array contents from a .mat file loaded using Scipy.io.loadmat - python

python matlab numpy scipy mat-file

UPDATE: This is a long question that boils down to, can someone explain the numpy array class to me? I answered my own question below.

WCF error: The caller was not authenticated by the service

.net wcf security wcf-binding

I am trying to access my WCF service on a server from my client console application for testing. I am getting the following error: