Test name | Executions per second |
---|---|
beginning with attribute selector | 8773790.0 Ops/sec |
attribute selector | 8989975.0 Ops/sec |
id selector | 9232063.0 Ops/sec |
<div id="variableContainerSso"></div>
/*your preparation JavaScript code goes here
To execute async code during the script preparation, wrap it as function globalMeasureThatScriptPrepareFunction, example:*/
async function globalMeasureThatScriptPrepareFunction() {
// This function is optional, feel free to remove it.
// await someThing();
}
document.querySelector("div[id^='variableContainerSso']")
document.querySelector("div[id='variableContainerSso']")
document.querySelector("#variableContainerSso")