From bde27f4cf67337fd09456e0f9bc0578808c5f29e Mon Sep 17 00:00:00 2001 From: bendtherules Date: Fri, 16 Oct 2020 19:27:35 +0530 Subject: [PATCH] DocFrag - Clarify benefit --- docs/create-modify-element.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/create-modify-element.mdx b/docs/create-modify-element.mdx index 910232d..d06a032 100644 --- a/docs/create-modify-element.mdx +++ b/docs/create-modify-element.mdx @@ -203,7 +203,7 @@ parent.insertBefore(newEle, ref.nextSibling) ### 6. Document Fragment DocumentFragment can be considered to be a off-screen lightweight `document` object. -It is generally used for batching multiple operations - by doing them over time in the fragment and rendering it in one shot to the actual visible DOM. +It is generally used for batching multiple operations - by doing them in the fragment over time and then rendering the whole content to the visible DOM in one shot . Because fragment is not rendered, making changes to it doesn't cause any performance impact (no reflow).