Use nested document fragments to minimize reflow