You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wonder why SvelteKit doesn't use getElmentById in the injected script? Lookup for ids is faster than querySelector. Since SvelteKit generate the hash for each document, there is less chance for collision. Like below:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I wonder why SvelteKit doesn't use
getElmentById
in the injected script? Lookup for ids is faster thanquerySelector
. Since SvelteKit generate the hash for each document, there is less chance for collision. Like below:Is there any technical reason not doing this? Just curios. Thanks.
Beta Was this translation helpful? Give feedback.
All reactions