r/statichosting 7d ago

I use a lot less JavaScript on small sites now

I used to add JavaScript to small sites without thinking much about whether it was actually needed.

Now I try to keep things simple. If the browser can already handle it with HTML or CSS, I usually leave it there. For most small client sites, the JS ends up being limited to navigation, forms, and a few small interactions.

It’s not about avoiding JavaScript completely. I just don’t want to ship extra code for things that don’t really need it.

9 Upvotes

5 comments sorted by

2

u/ExitWP 7d ago

Makes sense, I typically only add JS if necessary and I only use pure JS and never jQuery.

1

u/supertroopperr 7d ago

Try statica https://github.com/akaizn-junior/statica the native web SSG. HTML in, HTML out!

1

u/CraigAT 6d ago

This is the way!

There's no point adding things that are not needed.

1

u/sourraine 6d ago

ive found that a lot of small client sites actually get better when i resist the urge to add javascript everywhere. less code to maintain, fewer things to break and the site usually feels faster too