Created
June 15, 2013 18:02
-
-
Save DKunin/5788991 to your computer and use it in GitHub Desktop.
doc fragment
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var somewhere = document.getElementById('here'), | |
fragment = document.createDocumentFragment(), | |
i, li; | |
for(i = 0; i < 1000; i++){ | |
li = document.createElement('li'); | |
li.innerText = i; | |
fragment.appendChild(li); | |
} | |
somewhere.appendChild(fragment); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment