:compiled templates/snippets creation before the DOM is loaded

When under creation, templates or snippets are added to the root DOM
element instead of the body DOM element.