Performance tuning

Making use of documentFragment and various other techniques to try to
speed up the rendering of the page.