Skip to content

Commit b42046b

Browse files
authored
Update README.md
1 parent 46d815a commit b42046b

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 in simple situations and was the way in the first versions, but whenever a subtree DOM swap happens (ex: htmx, ajax, jquery), MutationObserver currently requires you to walk all child elements to find all instances of `<style>`, which is not currently competitive with QSA after a few hundred `<style>`. With fewer `<style>` the performance difference is not relevant.
146+
* This will work in simple situations and was the way in the first versions, but whenever a subtree DOM swap happens (ex: htmx, ajax, jquery), MutationObserver currently requires you to walk all child elements to find all instances of `<style>`, which is not currently competitive with QSA after a few hundred `<style>`.

0 commit comments

Comments
 (0)