Frontend
Organizing static assets for predictable delivery
A predictable file structure makes small sites easier to deploy, cache and maintain. It also helps keep experiments portable across different hosting setups.
A simple structure
For a small static site, a structure like assets/styles.css,
assets/app.js and notes/ is often enough.
Keep dependencies minimal
External libraries are useful, but a simple landing page often does not need them. Fewer dependencies means fewer requests and fewer update risks.
- Keep CSS in one main file.
- Use small JavaScript only when it improves the page.
- Store notes and static pages as plain HTML.