Will Magento 2 with the Hyvä theme always run faster than with any other theme?

14 min read 8 views

Imagine two Magento stores. The first uses Hyvä, but loads a dozen marketing tools at the start, downloads large images, and generates the page from scratch every time. The second uses a different, carefully optimized theme, an efficient cache, and only the scripts the customer needs.

Which one will be faster? The theme name alone is not enough to answer.

Hyvä gives Magento a very strong starting point for building a fast store. However, it does not provide an unconditional advantage over every other implementation. The result depends on the entire path between clicking a link and the moment when the customer sees the product and can buy it.

That is why implementing Hyvä is worth combining with a review of the server, modules, images, and interface design. This makes it possible to work toward an ambitious goal: 95–100 points in Google PageSpeed Insights, while preserving the features needed for sales.

What does a 95–100 PageSpeed score actually mean?

People often refer to 100% in PageSpeed, but the tool presents points on a scale from 0 to 100. In the Lighthouse-based section, it evaluates four different areas:

CategoryWhat does it help evaluate?Example issue in a store
PerformanceHow the page loads and rendersThe product image appears with a delay
AccessibilityAutomatically detectable barriers to using the pageText that is too light or a button without an accessible name
Best PracticesSelected technical aspects of page qualityBrowser errors or unsafe resources
SEOBasic technical requirements for search enginesMissing page description or incorrect canonical

These scores do not replace one another. A fast store can have unreadable buttons. A technically correct store can download too much JavaScript. Lighthouse is a diagnostic tool, and the scope of its audits does not cover the full quality of a store. Lighthouse overview.

The Performance score comes from a lab measurement and can vary between runs. PageSpeed also shows, when available, real-user data from CrUX, collected over a rolling 28-day period. A new implementation will not immediately change this entire dataset. How PageSpeed Insights works.

In practice, we need two goals: consistently strong test results and strong customer experiences. For Core Web Vitals, this means:

  • LCP up to 2.5 s — the largest element in the viewport appears quickly;
  • INP up to 200 ms — efficient response to interactions;
  • CLS up to 0.1 — a stable page layout.

These thresholds are evaluated at the 75th percentile, separately for mobile devices and desktops. A standard Lighthouse load test does not measure INP; to diagnose browser blocking, it uses metrics such as TBT. A low TBT is not automatic confirmation of a good INP. Core Web Vitals.

How does Hyvä help speed up Magento?

Hyvä reduces frontend weight compared with the standard Luma theme. It uses Alpine.js for interactions and Tailwind CSS for styling. Less code to download and execute gives the browser more room to display the offer quickly. Hyvä documentation points to reducing JavaScript and CSS as an important part of this architecture. Hyvä performance.

However, this benefit can be reduced easily. All it takes is adding an advanced slider, chat, several trackers, and modules that bring old dependencies from the previous theme into the lightweight frontend.

Hyvä will also not fix a slow database query, a non-working cache, or a server busy with imports. That is why the question before implementation should be: what is currently delaying the purchase, and which of these issues will a frontend change solve?

1. Server: nginx and Varnish must do the right job

Before the browser can display a product, it must receive the HTML document. If it waits a long time for the first byte of the response, even a lightweight theme starts with a delay.

Nginx: efficient resource delivery

In a typical Magento architecture, nginx handles, among other things, HTTPS, static files, and forwarding requests to downstream services. It is worth checking compression of text responses, HTTP/2, and cache headers for versioned CSS and JS files. Adobe provides a sample nginx configuration as a starting point for an implementation with Varnish. Varnish configuration in Adobe Commerce.

Not every response should be assigned the same storage time. A versioned CSS stylesheet can be used from the browser cache for a long time. Price, cart contents, and responses related to a logged-in customer require different handling.

If the server selects WebP based on the Accept header, the cache key and the Vary: Accept header must also be checked. The browser and intermediary cache layers must be able to distinguish image variants.

Varnish: check cache hits, not just whether the service is installed

Varnish makes it possible to serve public pages from cache without making Magento perform all the work again. Adobe recommends using it in production environments. Magento cache management.

A practical test is simple: open the same public URL several times and check whether HIT responses appear after the first response. Then compare the cached response time with the page generation time on a MISS.

If a popular category constantly bypasses cache, the cause must be found: configuration, cookies, URL parameters, personalization, or how a module works. Buying a larger server may then only mask the problem.

Correctness is also important. Cache must not expose one customer’s cart or data to another user. Store views, currencies, and customer groups must be tested, as well as content refresh after a product change. A fast but outdated price is not an optimization success.

Beyond nginx and Varnish, we check PHP-FPM, OPcache, the backend cache compatible with the Magento version, the database, cron, and indexing. The number of PHP processes should be based on available memory and actual load. Increasing it without measurement can make the situation worse.

2. Modules for Hyvä: compatibility is only the beginning

A module can work correctly with Hyvä and still do too much work when the page loads. Good optimization therefore covers both the function and the cost of starting it.

At kowal.store, we adapt our modules to Hyvä and develop them with the goal of preserving this theme’s performance after installation. We make sure new features do not put unnecessary load on the frontend — by limiting dependencies and using an appropriate loading strategy for JavaScript and CSS. See our Magento 2 modules and choose extensions for your store. The effect of a specific implementation is worth confirming with measurement, because it also depends on the configuration and other integrations.

Take chat as an example. A customer browsing a category initially needs a button that opens the conversation. The advanced chat interface and its libraries can be downloaded when it is opened. Similarly, full search suggestions can be prepared when the user enters the search field, while keeping the form visible and functional right away.

ElementWhat should work immediately?What can be considered for later loading?
Product listNames, prices, layout, and the most important imageSupporting features outside the first screen
ChatAvailable open buttonConversation panel and its dependencies
SearchField, label, and form submissionAdvanced suggestions
VideoThumbnail and play buttonExternal player
BlogContent and styles of the component being usedSlider, if the component does not appear on the page

This approach is also described by Hyvä in its recommendations for loading external JavaScript.

defer, async, and delaying a component are different things

defer allows an external classic script to execute after the document has been parsed and preserves the order of scripts of that type. async runs a script when it is ready, with no guarantee of order relative to others. Neither of these attributes by itself means the file will be downloaded only after a click.

Hyvä also provides x-defer, which can delay initialization of an Alpine component, for example until it approaches the viewport. This is not an automatic deferral of downloading all of its files. You also need to remember events that the component may miss before initialization, such as those related to customer data. x-defer documentation.

Changes should be checked on the cart, filters, forms, and analytics events. The mere presence of the defer attribute does not prove that a module is well optimized.

CSS: the required appearance should be ready before the first render

Styles for the header, product list, and mobile layout are needed from the start. Loading them too late can cause page flashing and layout shifts. At the same time, a product category does not need to download all styles from every installed module.

It is worth limiting global stylesheets, removing remnants of the old theme, and checking the production Tailwind build. For dynamically generated classes, you need to make sure the required rules are included in the final CSS. Critical CSS embedded in HTML can help, but it requires maintenance and testing; it should not be the first answer to every problem. Render-blocking resources.

Analytics and SEO data also have a cost

While working on optimization for a Magento 2 store, we checked the analytics load on a category page. GTM and gtag accounted for about 304 KB, or 44% of the transfer recorded in the first mobile measurement. This is a good reason to review tags and triggers. It does not mean that all analytics should be delayed without careful consideration: such a change may affect the number of recorded visits and events.

It is also worth looking into the HTML itself. Extensive JSON-LD data, duplicated product information, and module configurations increase the server response. JSON-LD does not execute like a regular JavaScript program, but it still has to be transferred. Category structured data should match the visible list, its pagination, and its order.

3. Images: format, size, and download timing matter

A source image several thousand pixels wide should not be sent unnecessarily to a small product tile. We prepare variants matched to the display size and screen density, while srcset and sizes help the browser choose the right file. WebP or AVIF should be compared in terms of quality and weight on the specific images.

The most important distinction is between images visible immediately and those lower on the page. The image that is the LCP should be easy to discover in HTML, without loading='lazy'; fetchpriority='high' may be justified. Images below the first screen are good candidates for lazy loading. Dimensions or aspect ratios reserve space for them in the layout. Responsive images.

However, we do not assign high priority to every image. The browser needs information about what is truly most important. Fetch Priority.

We also check CMS banners, the logo, favicon, video thumbnails, and popup graphics. Optimization must include the process of adding new files; otherwise, the next campaign will bring heavy images back.

A URL ending in .png alone does not determine what the browser downloads. The server can deliver WebP at that address. We verify Content-Type and transfer in the Network tab.

4. Color scheme: its biggest impact is visible in accessibility

Changing a blue button to green will not speed up Magento. However, color has a major impact on readability and the Accessibility score.

The most common problems are caused by light gray descriptions, pastel buttons with white text, promotion labels, and text on images. According to WCAG, the contrast of normal text should be at least 4.5:1, and large text should be 3:1. Large text means at least 18 pt, or about 24 px, or 14 pt when bold, or about 18.7 px. Text contrast requirements.

For important visual elements of controls and state indicators, a 3:1 contrast requirement against adjacent colors also applies, with exceptions described in the standard. Non-text contrast.

It is worth defining the palette centrally, for example through CSS variables or color module configuration. This way, changing the text or button color applies across the entire store. Hover states, focus states, form errors, and selected filters also need to be checked. A red outline should not be the only indication that a field contains an error.

Performance can be affected by how the appearance is implemented: additional stylesheets, a script that changes colors after loading, or heavy visual effects. The palette itself, however, is not a substitute for optimizing JS, images, and the server.

Why is one good score not enough?

While optimizing a Magento 2 store with Hyvä, we ran two local Lighthouse measurements for the same category page. On mobile, we got 94 and 73 points. LCP was 2.5 and 5.7 s respectively, even though in both cases it referred to the same image of the first product. Desktop reached 100 points.

All of these runs reported that the loading timeout was exceeded, so we treated the results as diagnostic and potentially incomplete. These were not confirmed PageSpeed Insights results or CrUX data. This is also not a comparison of Hyvä with another theme.

In the weaker run, the image downloaded quickly, but it was displayed later. This shows why download time must be separated from render time. Further compressing the file alone does not explain this type of issue. Analysis of LCP stages.

When working on a store, we compare several runs, the median, and the spread, while keeping the same conditions. We do not treat reports with errors as a stable reference point. We also check behavior after accepting cookies, after opening search, and after adding a product to the cart.

Magento and Hyvä checklist: the path to 95–100 points

The list below helps plan an audit and acceptance of the work. It is not a guarantee of four 100/100 scores. The score depends on the page, configuration, test conditions, and Lighthouse version. A green score also does not replace manual accessibility testing, a security audit, or an SEO strategy.

Measurement and baseline

  • The homepage, category, product, search, and key purchase steps have been tested.
  • Separate mobile and desktop measurements were performed across several comparable runs.
  • The tool version, device profile, consent state, and score range were recorded; timeouts were explained.
  • LCP, INP, and CLS were checked from CrUX or your own monitoring, if available.
  • Single URL data was distinguished from domain-wide data.
  • First visit, returning user behavior, and post-interaction behavior were tested.

Server, nginx, and Varnish — Performance

  • Magento runs in production mode, with static assets prepared correctly.
  • Public pages achieve Varnish HIT; response time on MISS was also checked.
  • Cache correctly distinguishes store variants, and private data does not end up in shared responses.
  • Changing a product, price, or content correctly invalidates the appropriate cache.
  • Nginx compresses appropriate text resources and supports a modern HTTP protocol.
  • Versioned files have appropriate cache headers; HTML and private responses have a separate policy.
  • PHP-FPM, OPcache, and backend cache are configured according to the Magento version and server resources.
  • Cron, indexing, imports, and bots do not cause response time spikes.

Modules, JavaScript, and CSS — Performance

  • Every active module has a business justification; unnecessary duplicate features have been removed.
  • Hyvä integrations do not unnecessarily bring back heavy dependencies from the previous frontend.
  • Module JS and CSS are loaded only on pages that use their features.
  • Scripts have been deferred while preserving dependencies, order, and initialization events.
  • Selective x-defer and component loading on use have been tested.
  • Critical styles are available before the first render; no layout flashing appears.
  • GTM, pixels, chat, and widgets have had their triggers and startup cost reviewed.
  • Analytics changes preserve the agreed consent behavior and correct e-commerce events.
  • HTML, DOM, and JSON-LD do not contain unnecessary duplicated data.
  • Cart, filters, sorting, pagination, and checkout work after optimization.

Images and layout stability — Performance

  • Graphics have the right dimensions, quality, and format; actual transfer was verified.
  • Responsive image variants match display sizes.
  • The LCP element was identified separately for mobile and desktop.
  • The LCP image is not delayed by lazy loading or unnecessary JS initialization.
  • High priority was assigned only to justified resources.
  • Images, banners, and embedded content have reserved space in the layout.
  • The logo, favicon, CMS graphics, and images added by modules were checked.
  • The process for publishing new images includes generating optimized variants.

Colors and interface operation — Accessibility

  • Text, prices, buttons, and messages have the required contrast on real backgrounds.
  • The contrast of important controls and the visibility of keyboard focus were checked.
  • Errors, promotions, and selections are not communicated by color alone.
  • Links and buttons have understandable accessible names; forms have labels.
  • Informative images have appropriate alternative text, and decorative images have an empty alt.
  • Menus, filters, popups, and the cart can be operated with a keyboard.
  • Page zoom, small screen behavior, and basic screen reader operation were checked.

Technical quality — Best Practices

  • The page and its resources work over HTTPS, without mixed content.
  • Console errors, failed requests, and warnings indicated by the audit were explained.
  • Libraries and modules are maintained; reported vulnerabilities were reviewed.
  • Images preserve their aspect ratios, and features do not unnecessarily use deprecated APIs.
  • The high score was confirmed together with working payments, forms, and consents.

Technical visibility — SEO

  • Pages intended for indexing return the correct status and do not have an accidental noindex.
  • robots.txt does not block required pages or resources.
  • Title and meta description match the page content.
  • Canonical is correct; language versions and hreflang were reviewed separately.
  • Navigation links are readable by crawlers, and pagination works correctly.
  • Structured data was verified with a separate tool and matches the visible content.
  • The sitemap and indexing in Search Console were reviewed — also beyond the scope of Lighthouse scoring.

Automated accessibility tests cover only some possible issues. Even a score of 100 must be supplemented with manual testing. How accessibility is scored in Lighthouse.

Where should you start work on your store?

First, determine what the customer is waiting for. If it is the server response — start with the backend and cache. If it is an image — check its discovery, download, and display. If the page is visible but responds with a delay — analyze JavaScript and component work.

Next, implement one logical group of improvements and repeat the measurements and purchase path tests. This makes it clear what helped and whether the cost of the change was justified. Reaching Core Web Vitals thresholds alone does not guarantee a score of 95: Performance is calculated from several weighted metrics. Lighthouse scoring rules.

Hyvä lets you start with a lightweight frontend. Maintaining this advantage requires conscious decisions with every subsequent module, banner, and marketing tool. It is therefore worth treating performance as an acceptance criterion for future implementations, not as a one-time project that ends with a screenshot of a green score.

If you are planning a Hyvä implementation or want to speed up an existing store, contact the kowal.store team. The starting point should be an audit of specific pages and the purchase path — with a list of causes, priorities, and measurements before and after the changes.

Keep reading

Magento 2 Module Audit: how to check which extensions help your store and which ones slow it down?

Magento 2 Module Audit: how to check which extensions help your store and which ones slow it down?

17 min read 14 views
Magento 2 gives you a great deal of freedom to expand your store, but over time that flexibility can become a problem. Each module adds new features, but it can also affect performance, security, the update process, and maintenance costs. That is why a regular extension audit should be one of the core elements of Magento store maintenance. In this article, we show when it is worth performing a Magento 2 module audit, what exactly to check, and how to decide which extensions to keep, update, replace, or remove.
Read more
Update cookie preferences