Thread:Mathmagician/@comment-93604-20120509230753/@comment-3508190-20120512211829

Rewriting createButton is easier. You know what: It's more efficient to concatenate the HTML strings before inserting them into the DOM. String concatenation is cheap. DOM insertion is costly.