{"ScriptPreparationCode":"var attributeName = \u0022data-resource\u0022;\r\nconst elements = 100000;\r\n\r\n\r\n// script without attribute\r\ndocument.body.appendChild(document.createElement(\u0022script\u0022))\r\n\r\n\r\n// script1 with attribute\r\nconst script1 = document.createElement(\u0022script\u0022);\r\nscript1.setAttribute(attributeName, 1);\r\ndocument.body.appendChild(script1);\r\n\r\n\r\nfor (let i = 0; i \u003C elements; i\u002B\u002B) { \t \t \r\n document.body.appendChild(document.createElement(\u0022div\u0022));\r\n}\r\n\r\n\r\n// script2 with attribute\r\nconst script2 = document.createElement(\u0022script\u0022);\r\nscript2.setAttribute(attributeName, 2);\r\ndocument.body.appendChild(script2);","TestCases":[{"Name":"Query by tag","Code":"Array.from(document.body.querySelectorAll(\u0022script\u0022))\r\n\t.filter(el =\u003E el.hasAttribute(\u0060${attributeName}\u0060));","IsDeferred":false},{"Name":"Query by attribute","Code":"document.body.querySelectorAll(\u0060[${attributeName}]\u0060);","IsDeferred":false}]}