{"ScriptPreparationCode":"var url = new URL(window.location);\r\nvar totalDivs = url.searchParams.get(\u0027div\u0027) || 10;\r\nvar totalOnce = url.searchParams.get(\u0027once\u0027) || 3;\r\nvar wrapper = document.querySelector(\u0027#wrapper\u0027);\r\nconsole.log(totalDivs, totalOnce);\r\n\r\nwrapper.innerHTML = \u0027\u003Cdiv class=\u0022test\u0022\u003E\u003C/div\u003E\u0027.repeat(totalDivs); \r\n\r\n\r\nvar items = wrapper.querySelectorAll(\u0027div.test\u0027);\r\nconsole.log(items);","TestCases":[{"Name":"jQuery.once","Code":"var $items = jQuery(items);\r\nfor (var i = 0; i \u003C totalOnce; i\u002B\u002B) {\r\n $items.once(\u0027test\u0027 \u002B i);\r\n}","IsDeferred":false},{"Name":"once","Code":"for (var i = 0; i \u003C totalOnce; i\u002B\u002B) {\r\n once(items, \u0027test\u0027 \u002B i);\r\n}","IsDeferred":false}]}