Skip to content

Development

Best practices for modern web applications

By Published: 1 min read
Code editor illustration

TL;DR

Modern web apps should render on the server for speed and SEO, ship as little JavaScript as possible, meet WCAG accessibility standards, use strict security headers and be measured continuously with Core Web Vitals. Bilingual sites must treat Arabic as a first-class, right-to-left layout — not a translation layer.

Why does server rendering matter?

Server-rendered HTML appears faster, works before JavaScript loads and is easy for search engines and AI assistants to read.

Which metrics should you track?

  • LCP under 2.5 seconds (we aim for 2.0)
  • INP under 200 milliseconds
  • CLS under 0.1 (we aim for 0.05)

How do you build a secure web app?

Use a strict Content Security Policy, validate every input on the server, rate-limit forms, keep dependencies updated and never expose admin panels at predictable URLs.

What makes a good bilingual site?

Mirror layouts with logical CSS properties, use a typeface designed for Arabic, avoid letter-spacing in Arabic and keep translated URLs and metadata for each language.

Key takeaways

  • Render on the server and ship less JavaScript.
  • Measure Core Web Vitals continuously.
  • Treat Arabic as a first-class RTL layout.

Frequently asked questions

Is Next.js good for SEO?

Yes. Server rendering, metadata APIs and image optimisation make it one of the strongest choices for SEO.

How often should dependencies be updated?

Security patches immediately; regular updates at least monthly with automated tests.

Share

Get new insights in your inbox

One practical email a month about software, AI and cloud. No spam.