Skip to content

Commit 0494ae0

Browse files
authored
Update README.md
1 parent 91fd1c5 commit 0494ae0

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
@@ -143,4 +143,4 @@ Use whatever you'd like, but there's a few advantages with this approach over Ta
143143

144144
## Technical FAQ
145145
* Why do you use `QuerySelectorAll()` and not just process the `MutationObserver` results directly?
146-
* This will work until you begin recieving subtree mutations (ex: DOM swap, htmx, ajax, jquery). MutationObserver currently requires you to walk all subtree child elements to not miss a `<style>` which is not as performant as QSA when scanning thousands of elements.
146+
* Processing `MutationObserver` results will work well until you begin recieving subtrees (ex: DOM swap, htmx, 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 performance winner.

0 commit comments

Comments
 (0)