Board Thread:Support Requests - Getting Technical/@comment-24553580-20190916180029

I want to configure and load a template through a Javascript. However, I am curious to know if the template will be loaded before I actually try implementing the script. Does the template always need to be pre-defined in the HTML before it can be loaded or will this work:

var containers = document.getElementsByClass("template-container");

for (int i = 0; i < containers.length; i++) { var container = containers[i]; container.innerHtml = ""; }  