assets/js/academia.js
// Debounce input to prevent spamming filter requests.
Debounce input to prevent spamming filter requests.
Debounce input to prevent spamming filter requests .
function debounce(fn, threshold) {
    let timeout;
    threshold = threshold || 100;
    return function debounced() {
      clearTimeout(timeout);
      let args = arguments;
      let _this = this;
      function delayed() {
        fn.apply(_this, args);
      }
      timeout = setTimeout(delayed, threshold);
    };
  }
function debounce ( fn , threshold ) { let timeout ; threshold = threshold || 100 ; return function debounced ( ) { clearTimeout ( timeout ) ; let args = arguments ; let _this = this ; function delayed ( ) { fn . apply ( _this , args ) ; } timeout = setTimeout ( delayed , threshold ) ; } ; }
Debounce input to prevent spamming filter requests.
Debounce input to prevent spamming filter requests .