Message from JavaScript discussions

July 2017

— When does it clone the document fragment into the real DOM?

— 

One being the cached blank template fragment, the next being the populated nonlive fragment, the next being the live inserted one

— You could very well transfer the nodes of the populated fragment directly too, but I decided to make it one way and clone instead

Message permanent page

— As a final step

— So data change => 3 clones, 1 DOM manipulation

— Then it returns an array of live nodes which were inserted

— Correct

— What if I fetch some JSON that modifies 100 document fragments

— And the data change handler is the user code, not in the engine

— I guess that would be my fault

— Thankfully that is still super fast

— Since it works with cached nonlive fragments