-
-
Save nocodesupplyco/adc2f6591aa00f5a3599895015f5b12d to your computer and use it in GitHub Desktop.
Page Change Click Delay
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('a.class, a.class2').click(function (e) { | |
e.preventDefault(); // prevent default anchor behavior | |
var goTo = this.getAttribute("href"); // store anchor href | |
setTimeout(function(){ | |
window.location = goTo; | |
},500); // time before completing action | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment