Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

End brackets not needed in HTML - can lower file sizes? #32

Open
sbutler-gh opened this issue Jan 13, 2023 · 0 comments
Open

End brackets not needed in HTML - can lower file sizes? #32

sbutler-gh opened this issue Jan 13, 2023 · 0 comments

Comments

@sbutler-gh
Copy link

sbutler-gh commented Jan 13, 2023

From: https://sas-dhrh.github.io/dhcc-toolkit/toolkit/minimal-computing.html#minify

According to the HTMX / hypermedia folks, many html tags don't actually need end tags — as you can see with:

by Sam Butler

Let's see if this works

Saved 6 chars so far ... (now 8!)

<p>by Sam Butler

<p> Let's see if this works

<p> Saved 6 chars <em> so far ... (now 8!)

It's a small, quirky, fun note, which is also political (for legibility and long-term maintenance, perhaps end brackets are useful — or not) and has tradeoffs with respect to file sizes, data usage, etc. I'm not sure about a specific change here without researching the area more, but it seemed like something worth keeping in mind and that could make it into the toolkit or tooling in the future

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant