Vanilla patterns

Node creation

For creating nodes, we use the <template> tag. Any markup placed inside it is ignored during parsing, and only parsed once we access its content. This speeds up the initial parsing, but the trade-off is some overhead once we start using the template. An alternative is to have a normal node in a hidden container, but that means that parsing takes longer, and therefore script execution is delayed.