Message from JavaScript talks

July 2017

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

Message permanent page

— 

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

— 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

— I also use the fastest html parsing method available