-
Hi, I have some tests that initially render a rather large DOM. I have been under the assumption that using queries like |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
The only thing that happens in |
Beta Was this translation helpful? Give feedback.
The only thing that happens in
within
is we're binding the queries to theelement
, so instead of usingscreen
which will rundocument.body.querySelectorAll
, we'll runelement.querySelectorAll
. I think it will have a performance impact only if thedocument.body
is really, really big. I believe thatwithin
's purpose is not a performance boost rather than narrowing down the query to a specific area of a page.