Also, instead of doing what they do, to use appendChild to add 100 new spans.
It’s better to create a document fragment using createDocumentFragment and append new elements to it. When done, append the fragment to the document, you will only have one reflow, instead of 100.