Software · Updated: · 2 min read

Performance Tips for Modern Web Development

Actionable optimisation techniques to improve the speed and user experience of your web applications.

Web performance is a cornerstone of user experience and technical SEO. A slow page loses visitors, and on a professional site it also erodes trust. In this article I summarise practical steps, starting with measurement and moving through images, fonts, JavaScript and the server.

Measure first: Core Web Vitals

Google's user-experience metrics consist of three core measurements:

  • LCP (Largest Contentful Paint): how long it takes for the largest content element to appear. Target: under 2.5 seconds.
  • INP (Interaction to Next Paint): how quickly the page responds to clicks and taps. Target: under 200 milliseconds. INP replaced FID in March 2024.
  • CLS (Cumulative Layout Shift): unexpected movement of elements while loading. Target: below 0.1.

Lab measurements (Lighthouse) point the way, but real-user data is what counts (the Core Web Vitals report in Search Console).

Images: the easiest win

On most sites, images make up most of the page weight. Switching to WebP or AVIF, never sending an image larger than it is displayed, and deferring off-screen images with loading="lazy" usually deliver the biggest gains. Giving every image a width and height lets the browser reserve space and prevents CLS.

A concrete example: this site's gallery grid dropped from about 4.6 MB to 0.8 MB after converting the photos to 640-pixel-wide WebP, and a 400 KB logo file fell below 2 KB at the size it is shown in the menu.

Fonts

Every font weight is a separate file. Load only the weights you actually use; where possible, use a single variable font file. font-display: swap keeps text visible before the font has loaded.

JavaScript

What hurts INP most is JavaScript that keeps the main thread busy. Remove unnecessary libraries, split large bundles by page (code splitting) and load non-critical scripts with defer. Use the passive option on scroll and resize listeners, and pause continuous animations while they are off screen.

Server and caching

Compression (gzip or Brotli), long-lived cache headers for static files, and version parameters that bust the cache when a file changes are the basics. On the database side, fixing slow queries with indexes, using a CDN where appropriate and taking advantage of HTTP/2 or HTTP/3 make a big difference.

Performance and SEO

Speed alone does not win rankings, but between two pieces of equally good content, the faster one keeps the user. When server-rendered HTML, a meaningful heading hierarchy and fast loading come together, search engines crawl your content more easily and understand it more accurately.

For performance in ERP-integrated apps, see SAP OData integration with Laravel. For software and integration services, see solution architecture and the services on the home page.

Frequently asked questions

What is INP?

Interaction to Next Paint is the Core Web Vitals metric measuring how quickly a page responds to user interactions; it replaced FID in March 2024. A good value is under 200 milliseconds.

Does web performance affect SEO?

Yes, Core Web Vitals are among Google's page experience signals. They do not win rankings alone but make a difference between content of similar quality.

Erhan AI — ERP & SAP Assistant

SAP S/4HANA & AI Consulting

Hello! I am Erhan Deniz's ERP and AI assistant. I can answer your questions about SAP S/4HANA (SD, ABAP, CO-PA), ERP consulting or AI solutions. How can I help you?