CypherDiscuss

From Traxel Wiki
Revision as of 21:53, 13 October 2023 by RobertBushman (talk | contribs) (Created page with "Category:CypherTech = Adding Divs = <syntaxhighlight lang="javascript"> var c = document.createDocumentFragment(); for (var i=0; i<10000; i++) { var e = document.createElement("div"); e.className = "test-div"; c.appendChild(e); } document.body.appendChild(c); </syntaxhighlight>")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Adding Divs

var c = document.createDocumentFragment();
for (var i=0; i<10000; i++) {
    var e = document.createElement("div");
    e.className = "test-div";
    c.appendChild(e);
}
document.body.appendChild(c);