Blog
Tech Tips.
Small, practical changes that make software faster, safer or easier to maintain.
18 postsPage 2 of 2RSS feed
Native image lazy loading: one attribute, used well
The loading attribute delays offscreen images until the user scrolls near them. It takes one word, but on the wrong image it makes a page slower. Where it belongs.
Serverless cold starts: causes and fixes
The first request to an idle serverless function is slow because the platform has to start it. What happens during a cold start and six ways to shorten or avoid it.
Keep API keys out of your frontend and your repo
An API key in frontend code or a Git commit is a public key. Where secrets belong, how a backend proxy protects them, and what to do the moment one leaks.
JavaScript performance: keep the main thread free
A page can load fast and still feel slow. Batch DOM updates, debounce noisy events and break up long tasks to keep the interface responsive.
CSS container queries: components that fit their space
Media queries ask how wide the screen is. Container queries ask how wide the component's own box is, so one card works in a sidebar, a grid or a full-width row.
Environment variables in Node.js and Vite
Hard-coded URLs and keys make an app fragile and unsafe. How .env files work in Node.js and Vite, which values reach the browser, and how to validate them at startup.
Tell us what’s in the way.
A few lines is enough. You get a candid yes, a candid no, or a sharper question.
- Working software in week four
- A reply in one business day
- Handover is the deliverable
Prefer email? hello@2haas.com