As a slight optimization I might render the subviews and then append, so that the complete documentFragment is inserted in one step.