Skip to content

Commit c538e9c

Browse files
committed
Add DOM to glossary and links.
1 parent 3a96dbb commit c538e9c

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

docs/backend/upgrading/version-specific-migration/p4x-to-p5x-upgrade.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ Here the two dependencies are jQuery and the pattern registry.
366366
We will not get into the pattern registry, as it is off-topic for this discussion.
367367
It is basically a registry of JavaScript components.
368368

369-
The necessity for using it here is with AJAX calls and binding new DOM elements dynamically added to the page.
369+
The necessity for using it here is with AJAX calls and binding new {term}`DOM` elements dynamically added to the page.
370370

371371
Additionally, above this `require` call, we provide some backward compatible code that you can inspect.
372372

docs/glossary.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ SSR
216216
server-side rendering
217217
When a web browser or other HTTP client sends a request, the HTML markup for the page is created on the server, which sends a response consisting of HTML markup back to the client.
218218
219-
In Volto, SSR returns HTML markup that closely matches the final DOM structure of the React components used to render that page, but it is not the complete page.
219+
In Volto, SSR returns HTML markup that closely matches the final {term}`DOM` structure of the React components used to render that page, but it is not the complete page.
220220
After the client loads the initial response, then the {term}`hydration` mechanism performs additional rendering on the client side, populating the DOM with additional HTML markup.
221221
222222
In Classic UI, SSR returns the complete page back to the client in the response.
@@ -225,6 +225,12 @@ server-side rendering
225225
SSR enables a developer to customize a website per request and per user.
226226
In addition, SSR can improve performance and search engine optimization (SEO) for a website.
227227
228+
DOM
229+
Document Object Model
230+
The Document Object Model (DOM) is a programming interface for web documents.
231+
It represents the page so that programs can change the document structure, style, and content.
232+
The DOM represents the document as nodes and objects; that way, programming languages, such as JavaScript and React, can interact with the page.
233+
228234
SPA
229235
single page application
230236
A type of JavaScript application that aims to provide a better user experience by avoiding unnecessary reloading of the browser page, instead using {term}`AJAX` to load backend information.
@@ -263,7 +269,7 @@ Yarn
263269
[Yarn](https://classic.yarnpkg.com/) is a JavaScript package manager.
264270
265271
Hydration
266-
After loading an HTML page generated with {term}`SSR` in the browser, React can populate the existing DOM elements, and recreate and attach their coresponding components.
272+
After loading an HTML page generated with {term}`SSR` in the browser, React can populate the existing {term}`DOM` elements, and recreate and attach their coresponding components.
267273
268274
JSX
269275
A dialect of JavaScript that resembles XML, it is transpiled by Babel to JavaScript functions.

0 commit comments

Comments
 (0)