---
title: "TIL about template tags in HTML"
slug: til-about-template-tags-in-html
canonical_url: https://nerdymomocat.github.io/posts/til-about-template-tags-in-html/
collection: Stream
published_at: 2024-07-07T00:00:00.000Z
updated_at: 2024-12-20T00:00:00.000Z
tags: 
  - Coding
  - Webtrotion
author: "Nerdy Momo Cat"
---

## Navigation Context

- Canonical URL: https://nerdymomocat.github.io/posts/til-about-template-tags-in-html/
- You are here: Home > Posts > Stream > TIL about template tags in HTML

### Useful Next Links
- [Home](https://nerdymomocat.github.io/)
- [Bundles](https://nerdymomocat.github.io/collections/bundles/)
- [Logbook](https://nerdymomocat.github.io/collections/logbook/)
- [Notes](https://nerdymomocat.github.io/collections/notes/)
- [Stream](https://nerdymomocat.github.io/collections/stream/)

### Related Content

#### Other Pages Mentioned On This Page
- [Introducing Webtrotion](https://nerdymomocat.github.io/posts/introducing-webtrotion/)
- [Making Webtrotion](https://nerdymomocat.github.io/posts/making-webtrotion/)

One reason I _**believe**_ I was having trouble getting pages indexed was due to the DOM size. This assumption is based on two observations: (a) when I had the same site in Quatro, it was much easier to get indexed; and (b) Notion returns a very shell-based HTML to Google's crawler (no images, colors, or icons). Most of my pages are stuck in "Discovered - currently not indexed." While I can't guarantee this will help, one major factor contributing to the large DOM size was the popovers I was creating.

So, I asked Claude and GPT-4, and they told me about the <template> tag. I never knew about it before, but it reduced the DOM size from around 2000 to about 1200 (see here ). Not sure if it would make a difference, but a smaller DOM size always helps!

[![Popovers, both pages and blocks, now use template tags to avoid rendering in the DOM, significantly reducing its size.](https://nerdymomocat.github.io/_astro/Untitled.DSpvymRN_Z1qnKUA.webp)](https://nerdymomocat.github.io/_astro/Untitled.DSpvymRN_Z1qnKUA.webp)

Popovers, both pages and blocks, now use template tags to avoid rendering in the DOM, significantly reducing its size.