https://codetofun.com/jquery/callbacks-locked/
jQuery callbacks.locked() Method