Last active
August 29, 2015 14:27
-
-
Save mathewjosephh/e402ee6ce05ce1f8212d to your computer and use it in GitHub Desktop.
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
//Delay execution Jquery | |
$('#search').keyup($.debounce(function() { | |
// Will only execute 300ms after the last keypress. | |
}, 300)); | |
//http://underscorejs.org/ | |
//using underscorejs | |
var d = _.throttle(ajax,200); | |
$(document).on('click','.overlay,.overlay-close',d); | |
function ajax(){ | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment