https://codetofun.com/jquery/finish/
jQuery .finish() Method