4

Usually, we could use document.createDocumentFragment() to create a DOM piece before append the piece to real DOM.

But we could also use document.createElement() to hold the piece.

So, which one should we use ?

lovespring
  • 18,247
  • 41
  • 98
  • 148

0 Answers0