We are thinking of using DOMDocumentFragments as a candidate for optimizing the dom manipulation code . What do you guys think ?
We are thinking of using DOMDocumentFragments as a candidate for optimizing the dom manipulation
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It’s not
DOMDocumentFragmentby itself that optimizes the dom manipulation, it’s the fact that document fragments are disconnected from the main document, so manipulating them doesn’t trigger any possibly heavy graphical updates on the screen.You can also do it without document fragments just by using a disconnected node.