From fb3783cc8b1aed4bb2798d4262209da4d210b32c Mon Sep 17 00:00:00 2001 From: Morris Brodersen Date: Sat, 6 Aug 2022 16:45:34 +0200 Subject: [PATCH] discuss innerHTML re-rendering problems --- README.md | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 11bd749..9d7781c 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ considerable duplication. If anything, the case study validates the value of build steps and frameworks, but also demonstrates that standard web technologies can be used effectively and there are only a few [critical areas](#523-the-bad) where a vanilla approach is -clearly inferior (especially in browser testing). +clearly inferior. _Intermediate understanding of the web platform is required to follow through._ @@ -375,9 +375,14 @@ Reference: #### 3.2.3. Rendering Naively re-rendering a whole component using `.innerHTML` should be avoided -as this may hurt performance and will likely break important functionality such -as input state, focus, text selection etc. which browsers have already been -optimizing for decades. +as this may hurt performance and will likely break important functionality +which browsers have already been optimizing for decades: + +- ``, `