Friday, 5 October, 2018 UTC


Summary

Most of the Javascript frameworks like Vue, React and Ember implement a “virtual DOM”.While it seems like some thing from a technological know-how fiction, its number one motive for present is to expand the speed and proficiency of DOM updates. It offers a few more advantages as well.What the DOM actually is (a reminder)We have a tendency consider the DOM as the HTML document it represents. but without a doubt the DOM is a tree-like data structure that comes into existence as soon as an HTML document has been parsed The browser paints the DOM to the screen and will repaint it inresponse to user actions (e.g. mouse clicks) and updates through its API from your Javascript scripts e.g. document.createElement.It’s expensive to update the DOMWhen we use Javascript to make a change to our page, the browser has to do some work to find the required DOM nodes and make the…