{"ScriptPreparationCode":"// Needs var hoisting, can\u0027t use let or const declarations!\r\nvar htmlTemplate = document.querySelector(\u0022template\u0022);\r\nvar myHTML = \u0060\u003Cdiv\u003E\u003C/div\u003E\u003Cdiv\u003E\u003C/div\u003E\u003Cdiv\u003E\u003C/div\u003E\u003Cdiv\u003E\u003C/div\u003E\u003Cdiv\u003E\u003C/div\u003E\u003Cdiv\u003E\u003C/div\u003E\u003Cdiv\u003E\u003C/div\u003E\u003Cdiv\u003E\u003C/div\u003E\u003Cdiv\u003E\u003C/div\u003E\u003Cdiv\u003E\u003C/div\u003E\u003Cdiv\u003E\u003C/div\u003E\u0060;\r\nhtmlTemplate.innerHTML = myHTML;\r\nvar globalTemplate = document.createElement(\u0022template\u0022);\r\nglobalTemplate.innerHTML = myHTML;\r\nvar clonedTemplate = globalTemplate.content.cloneNode(true);","TestCases":[{"Name":"T1 - set innerHTML","Code":"document.querySelector(\u0022#T1\u0022).innerHTML = myHTML;","IsDeferred":false},{"Name":"T2 - clone template - appendChild","Code":"document.querySelector(\u0022#T2\u0022).appendChild(globalTemplate.content.cloneNode(true));","IsDeferred":false},{"Name":"T3 - clone Template - append","Code":"document.querySelector(\u0022#T3\u0022).append(globalTemplate.content.cloneNode(true));","IsDeferred":false},{"Name":"T4 - clone HTML Template","Code":"document.querySelector(\u0022#T4\u0022).append(htmlTemplate.content.cloneNode(true));","IsDeferred":false}]}