Skip to content

Instantly share code, notes, and snippets.

@nocodesupplyco
Created December 16, 2022 19:25
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save nocodesupplyco/adc2f6591aa00f5a3599895015f5b12d to your computer and use it in GitHub Desktop.
Page Change Click Delay
$('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