Most portfolios don't need a client-side router, a state manager, and three animation libraries. They need text, a few links, and an image or two. Every dependency you add is a promise to maintain it, debug it, and ship it to someone on a slow connection.
This post is about the discipline of leaving things out, and why the result feels faster than any optimization pass.
Start from the content
The content is the product. Before touching a framework, write the pages as plain markup and see how they feel. If a page works as static HTML, it should probably stay that way.
What actually needs JavaScript
- A command palette that opens on a keyboard shortcut.
- Filters that update the URL without a full reload.
- Anything that must react to a click immediately.
A blog post is none of those. It's a document, and documents have worked for decades.
What can stay on the server
- Rendering Markdown into HTML.
- Sorting and filtering a list of posts.
- Generating metadata for social previews.
Measure the boring parts
Network latency, font loading, and image weight matter far more than a few hundred milliseconds of hydration. Shrinking a bundle from 200KB to 150KB is invisible next to a 500KB hero image.
A small checklist
- Compress and size every image before it ships.
- Subset the fonts you actually use.
- Cache anything that doesn't change per request.
- Prefer CSS for layout and transitions.
Let the browser do its job
Links navigate. Forms submit. Scrolling is smooth without a library. The platform has gotten very good at the things we keep reimplementing.
The fastest code is the code you never shipped.
Conclusion
Less JavaScript is not a rule, it's a default. Reach for interactivity when it earns its place, and let the rest of the site stay quiet. Visitors notice speed long before they notice the stack.