Wait until previous .append() is complete

后端 未结 9 977
情话喂你
情话喂你 2020-12-09 19:14

How can we make append wait until the previous append is complete. I am appending huge amount of data so the present append should check if the pre

9条回答
  •  -上瘾入骨i
    2020-12-09 19:45

    Perhaps another way might have been to simply check whether the length of the innerHTML of the container you're appending to equals the length of the last chunk of content, within your polling function.

    If not dont append, if so append.

提交回复
热议问题