Minimizing DOM repaints/reflows due to pagination control rendering by keeping it out of the DOM until adding listeners