Buffer rendering using a document fragment for increased performance