Through the use of a DocumentFragment (Document Fragment) you are able to construct a DOM structure behind the scenes within your Javascript code - without the changes being immediately rendered within the browser.
This enables a more modular and in some cases, a cleaner way to deal with DOM manipulations within Javascript.
In this video we look at appending new list item elements to an un-ordered list using a DocumentFragment over traditional appendChild calls on the parent element itself.
If this video helped you out and you'd like to see more, make sure to leave a like and subscribe to dcode!
On this page of the site you can watch the video online Document Fragments in Javascript with a duration of hours minute second in good quality, which was uploaded by the user dcode 17 January 2018, share the link with friends and acquaintances, this video has already been watched 22,660 times on youtube and it was liked by 516 viewers. Enjoy your viewing!