Render content on DocumentFragment for performance