Closed romancow closed 8 years ago
Instead of using the passed document to create elements, create should get a DocumentFragment (via document.createDocumentFragment()), use it to create and add elements, then return it. This method, according to docs, is more efficient.
create
document.createDocumentFragment()
Instead of using the passed document to create elements,
create
should get a DocumentFragment (viadocument.createDocumentFragment()
), use it to create and add elements, then return it. This method, according to docs, is more efficient.