My debounce function seems to work as expected at first. I can see this because it appends 30 new elements with the inner text of new-el-1 . Triggering the scr
new-el-1