From cbdbb3c152c985ad9a2b1a8617cd29264c497384 Mon Sep 17 00:00:00 2001 From: skirtle <65301168+skirtles-code@users.noreply.github.com> Date: Fri, 12 Mar 2021 06:20:45 +0000 Subject: [PATCH] docs: switch the Virtual DOM CodePen to the Vue account --- src/guide/optimizations.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/guide/optimizations.md b/src/guide/optimizations.md index b85fe35766..b5f6d62e65 100644 --- a/src/guide/optimizations.md +++ b/src/guide/optimizations.md @@ -7,7 +7,7 @@ Now that we know how watchers are updating the components, you might ask how those changes eventually make it to the DOM! Perhaps you’ve heard of the Virtual DOM before, many frameworks including Vue use this paradigm to make sure our interfaces reflect the changes we’re updating in JavaScript effectively
- +
We make a copy of the DOM in JavaScript called the Virtual DOM, we do this because touching the DOM with JavaScript is computationally expensive. While performing updates in JavaScript is cheap, finding the required DOM nodes and updating them with JavaScript is expensive. So we batch calls, and change the DOM all at once.