Skip to content

Instantly share code, notes, and snippets.

@chrislloyd
Created December 1, 2009 05:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save chrislloyd/246087 to your computer and use it in GitHub Desktop.
Save chrislloyd/246087 to your computer and use it in GitHub Desktop.
jQuery._ajax = jQuery.ajax;
jQuery.ajax = function(opts){
var self = this;
return setTimeout(function(){
jQuery._ajax.call(self, opts);
}, 2000);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment