reduce the number of dom changing events on the doc library