Skip to content

Commit d928f7e

Browse files
authored
Update README.md
1 parent a85531d commit d928f7e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,5 +156,5 @@ Tailwind verbosity goes up with more child elements.
156156
```
157157

158158
## 🔎 Technical FAQ
159-
* Why do you use `QuerySelectorAll()` and not just process the `MutationObserver` results directly?
160-
* Processing `MutationObserver` results will work well until you begin recieving subtrees (ex: DOM swap, [htmx](https://htmx.org), ajax, jquery) which requires you to walk all subtree child elements to not miss a `<style>`. This can involve re-scanning thousands of repeated elements, and `QuerySelectorAll()` ends up the simplicty and performance winner.
159+
* Why do you use `querySelectorAll()` and not just process the `MutationObserver` results directly?
160+
* Processing `MutationObserver` results will work well until you begin recieving subtrees (ex: DOM swap, [htmx](https://htmx.org), ajax, jquery) which requires you to walk all subtree child elements to not miss a `<style>`. This can involve re-scanning thousands of repeated elements, and `querySelectorAll()` ends up the simplicty and performance winner.

0 commit comments

Comments
 (0)