Skip to content

AnnuTech

News

Essential Steps to Build a Modern, High-Performance Website

A modern website is judged on three fronts at once: responsiveness measured by Core Web Vitals, compliance with accessibility requirements, and its attack surface…

Développeuse web analysant des maquettes de site web sur un bureau en bois dans un espace de coworking moderne

A modern website is judged on three fronts at once: responsiveness measured by Core Web Vitals, compliance with accessibility requirements, and its security attack surface. Since March 2024, Google has replaced First Input Delay with Interaction to Next Paint (INP) in its Core Web Vitals, making it essential to test responsiveness well beyond the first click. Building a high-performance website means constantly balancing rich functionality against technical debt.

Balancing dependencies and responsiveness: the real key to web performance

Every npm package, WordPress plugin, and JavaScript library added to the bundle increases the initial page weight, parsing time, and the amount of code that needs to be maintained. A site that loads three animation frameworks for a carousel and a hamburger menu accumulates invisible debt.

INP penalizes this kind of overhead directly. Unlike FID, which measured only the first interaction, INP evaluates the latency of every user action throughout the session. A contact form that lags because an event handler is blocked by a third-party script will lower the score, even if the initial load seemed fast.

The basic rule: don’t install anything unless you can justify it with a documented functional need. Before adding a dependency, we check three things:

  • Can the functionality be achieved with native CSS or a browser API (Intersection Observer, dialog, popover) without an external library?
  • Is the package actively maintained, with security updates released in the last six months?
  • Is its compressed size more than a few kilobytes, and if so, can we import only the required module through tree-shaking?

A lightweight site with four audited dependencies will be more responsive, more accessible, and easier to secure than one packed with plugins that are never updated. When you build a website with Code Web, this commitment to technical simplicity guides every architectural decision.

Web developer focused on writing HTML and JavaScript code across two screens in a home office

Accessibility from the outset: regulatory requirements and the complete user journey

Accessibility is no longer a nice-to-have. Since June 28, 2025, the European Accessibility Act (Directive (EU) 2019/882) has applied to e-commerce services intended for consumers. The requirement does not cover only the homepage or product pages.

The entire checkout journey must be accessible: signing in, browsing the catalog, adding items to the cart, entering delivery details, paying, and receiving confirmation. An audit limited to public pages is not enough to demonstrate compliance.

Build accessibility into the development workflow

Testing accessibility at the end of a project means reworking the architecture after delivery. The cost of fixes skyrockets. Three practices help reduce this risk from the start.

First, use semantic HTML before adding any CSS styling. A native button handles focus, keyboard input, and screen readers without additional JavaScript. A div styled as a button requires ARIA attributes, a keyboard handler, and manual testing.

Next, add an accessibility linter (axe-core, for example) to the CI pipeline. Any pull request that introduces a regression blocks the merge. This automated safety net catches contrast issues, images without alt attributes, and forms without labels.

Finally, carry out manual keyboard and screen reader tests on critical user journeys. Automated tools cover only some WCAG criteria; the rest require human review.

Dependency security: every package is a potential entry point

Security responsibility doesn’t stop with the code written by the team. The OWASP Top 10 identifies the use of components with known vulnerabilities as a major risk. In a typical web project, most of the code that runs comes from third-party dependencies.

Running npm audit or yarn audit once a week costs nothing and reveals published vulnerabilities. But an audit alone isn’t enough if nobody acts on the alerts. Every outdated dependency is an active security liability.

Reduce the attack surface from the architectural stage

Fewer dependencies mean fewer attack vectors. This directly supports the performance trade-off discussed above: a lean site is a safer site.

  • Pin exact versions in the lockfile to avoid untested automatic updates that could introduce malicious code.
  • Monitor transitive dependencies (packages installed by your packages) with tools such as Dependabot or Renovate, configured to open a PR for every security fix.
  • Keep development dependencies out of the production bundle. A testing tool or linter included in the final build unnecessarily expands the exposed attack surface.

Two web developers collaborating in front of a whiteboard showing the architecture of a high-performance website

Deployment pipeline and monitoring metrics for a high-performance website

A website that performs well at launch won’t stay that way without ongoing monitoring. Core Web Vitals change, dependencies age, and content grows heavier. The deployment pipeline needs automated safeguards.

Running Lighthouse CI at every deployment makes it possible to set thresholds for LCP, CLS, and INP. If a deployment pushes INP above the defined budget, it is blocked before reaching production. Performance budgets should be treated like unit tests: if one fails, fix the issue before merging.

Measure real-world data, not just lab results

Lighthouse scores in a local environment don’t reflect the real user experience. A mobile device on 4G in an area with poor coverage will produce very different results from a MacBook Pro on fiber. The Chrome User Experience Report (CrUX) provides real-world metrics aggregated over 28 days.

Comparing lab and real-world data reveals discrepancies. An LCP that looks good in the lab but is poor in the field often points to a server issue (response time, lack of a CDN) rather than bundle size.

Building a modern website depends on architectural decisions made early and maintained over time. Every dependency added must pass the triple test of responsiveness, accessibility, and security. A site that meets these requirements from its very first line of code costs less to evolve than one that has to be fixed after the fact.

Essential Steps to Build a Modern, High-Performance Website