mirror of
https://github.com/bigskysoftware/htmx.git
synced 2025-09-28 21:41:40 +00:00
[Performance] Fast path to resolve body selector (#1545)
Fast path to resolve body selector
This commit is contained in:
parent
67b8e1edfa
commit
efb42e09cf
@ -595,6 +595,8 @@ return (function () {
|
||||
return [document];
|
||||
} else if (selector === 'window') {
|
||||
return [window];
|
||||
} else if (selector === 'body') {
|
||||
return [document.body];
|
||||
} else {
|
||||
return getDocument().querySelectorAll(normalizeSelector(selector));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user