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!
На этой странице сайта вы можете посмотреть видео онлайн Document Fragments in Javascript длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь dcode 17 Январь 2018, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 22,660 раз и оно понравилось 516 зрителям. Приятного просмотра!