Add loading gif for infinite pagination