2HAASStart a project
All posts

Blog

Tech Tips.

Small, practical changes that make software faster, safer or easier to maintain.

18 postsPage 2 of 2RSS feed

  1. 2 min read

    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.

  2. 2 min read

    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.

  3. 2 min read

    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.

  4. 2 min read

    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.

  5. 2 min read

    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.

  6. 2 min read

    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

The problem, who it is for, and what is in the way right now.

One business day to a real reply. No sales sequence, no call required.