Skip to content

Commit f212200

Browse files
authored
Update README.md
1 parent 7aa5c4c commit f212200

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,4 +156,4 @@ Tailwind verbosity goes up with more child elements.
156156
```
157157
## 🔎 Technical FAQ
158158
* Why do you use `querySelectorAll()` and not just process the `MutationObserver` results directly?
159-
* 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+
* This was indeed the original implementation; it will work well up until you begin recieving subtrees (ex: DOM swaps with [htmx](https://htmx.org), ajax, jquery, etc.) which requires walking all subtree elements to ensure we do not miss a `<style>`. This unfortunately involves re-scanning thousands of repeated elements. Because of this, `querySelectorAll()` ends up the performance (and simplicty) winner.

0 commit comments

Comments
 (0)