Kastavo

How to improve your website's performance: what I learned going from 44 to 98

A low performance score can have several causes, and the right fix only shows up when you measure it right.

5 min read

  • kastavo
  • performance
A glowing curve climbing on a dark chart, like a website getting faster

Last week I decided to measure Kastavo's performance for real, instead of just trusting the feeling that "it seems fast". I used a performance scanning tool I found online, and the first result was worse than I expected: a score of 44 on a scale of 0 to 100. LCP (the time until the largest visible element shows up) of 7.2 seconds, TBT (total blocking time) of 3.6 seconds — both in the "poor" range.

I started investigating calmly, one cause at a time.

Finding 1: every page loaded everything

The first problem was structural: the Home page — and, in fact, every page on the site — was loading the libraries of all 100+ tools, not just the one the person was using. That meant downloading PDF, video and OCR processing code even for someone who only wanted the word counter.

The fix was to separate the tool catalog (metadata, light) from the loading of each tool itself (heavy, only when needed). The result: the Home page dropped from 2.3 MB of JavaScript to under 900 KB.

Finding 2: a hidden redirect

The second problem was subtler: every visit to the site's root (kastavo.com/) went through a redirect to the right language (/en, /pt or /es), and that extra step cost more than half a second in the simulated measurements. The fix was to make the root answer with the content right away, with no hop, for people using the default language (English). Anyone who prefers Portuguese or Spanish is still sent to the right version, with the language detected the same way as before.

This was the most unexpected one. The most important performance metric (LCP) was being held back by the cookie notice, which only drew after the JavaScript finished loading. The solution was to make the notice come ready in the HTML from the very first moment, waiting for nothing.

The plot twist: the numbers changed depending on where I measured

After those fixes, I ran the test again expecting everything to be solved — and the result was still strange: sometimes 65, sometimes 68, not matching what I saw in my own browser. I ran it several more times and realized the numbers simply weren't consistent with each other.

I decided to stop trusting that single number and cross-check with a reference source: Google's own PageSpeed Insights. It uses the same measurement engine that runs in the browser (Lighthouse), but on Google's servers, and it also shows data from real users when a site has enough traffic (Kastavo doesn't yet, and the panel says "No Data").

PageSpeed Insights result for Kastavo's Home page on mobile: 98 for performance and 100 for accessibility, best practices and SEO
PageSpeed Insights result for Kastavo's Home page on mobile: 98 for performance and 100 for the other three categories.

The result was very different: 98 for performance, 100 for accessibility, best practices and SEO; an LCP of 2.3 seconds and a TBT of 80 milliseconds. It was exactly what the fixes should have delivered — it's just that the first tool I used to measure, for some reason, wasn't reflecting that reliably.

The lesson that stays

This taught me something that goes beyond performance: a measuring tool isn't neutral — each one simulates different conditions (connection type, processor speed, location of the test server), and a single number can mislead. When the result doesn't match what you see in practice, it's worth cross-checking more than one source before assuming the problem is yours.

Today Kastavo really does load fast, not just "seem" fast — and now I trust that because I measured the right way, not just once.

Want to test your own site? Go to PageSpeed Insights, paste your address and see the performance score for mobile and desktop.

Frequently asked questions

Keep reading

This website uses cookies

We use cookies to improve your experience and understand how the site is used. You can change this choice anytime in Cookie Preferences. See our Privacy Policy.