{"id":21655,"date":"2025-09-11T17:37:51","date_gmt":"2025-09-11T12:07:51","guid":{"rendered":"https:\/\/meetanshi.com\/blog\/?p=21655"},"modified":"2025-09-11T17:37:53","modified_gmt":"2025-09-11T12:07:53","slug":"hyva-speed-optimization-steps","status":"publish","type":"post","link":"https:\/\/meetanshi.com\/blog\/hyva-speed-optimization-steps\/","title":{"rendered":"8 Key Hyv\u00e4 Speed Optimization Steps to Boost Performance"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Hyv\u00e4 is lightweight and fast compared to Luma or other storefronts.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">But still, you must fully optimize for your store. As each website has unique requirements and additional factors that impact the overall performance.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Let\u2019s explore what steps are involved in optimization and why it matters.&nbsp;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">8 Important Hyv\u00e4 Speed Optimization Steps<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Step 1 &#8211; Check Google PageSpeed<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">The first and most important step is to run a <a href=\"https:\/\/pagespeed.web.dev\/\" target=\"_blank\" rel=\"noopener\">Google PageSpeed Insights<\/a> audit.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This tool provides a detailed report on your site\u2019s performance, highlights key bottlenecks, and gives you a baseline to measure improvements against. It is often the starting point for any performance optimization project. <\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"294\" src=\"https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2025\/09\/Google-page-speed-score-and-actions--700x294.png\" alt=\"Google page speed score and actions\" class=\"wp-image-21658\" style=\"width:743px;height:auto\" srcset=\"https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2025\/09\/Google-page-speed-score-and-actions--700x294.png 700w, https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2025\/09\/Google-page-speed-score-and-actions--250x105.png 250w, https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2025\/09\/Google-page-speed-score-and-actions--768x322.png 768w, https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2025\/09\/Google-page-speed-score-and-actions--1536x644.png 1536w, https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2025\/09\/Google-page-speed-score-and-actions--403x169.png 403w, https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2025\/09\/Google-page-speed-score-and-actions--964x404.png 964w, https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2025\/09\/Google-page-speed-score-and-actions--120x50.png 120w, https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2025\/09\/Google-page-speed-score-and-actions-.png 1798w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\">This is the general performance score criteria.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td><strong>Score<\/strong><\/td><td><strong>Indicated&nbsp;<\/strong><\/td><td><strong>Action&nbsp;<\/strong><\/td><\/tr><tr><td>90\u2013100<\/td><td>Excellent performance&nbsp;<\/td><td>No action needed&nbsp;<\/td><\/tr><tr><td>50\u201389<\/td><td>Require optimization<\/td><td>Aim to optimize score 90-100<\/td><\/tr><tr><td>0\u201349<\/td><td>Performance issues&nbsp;<\/td><td>Actively work on the suggested changes&nbsp;<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">If your score falls under 50\u201389 or 0\u201349, analyze the issue and take the needed action as suggested. Additionally, follow the ones mentioned here.&nbsp;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Step 2 &#8211; Convert Images to WebP<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Images are often the heaviest assets and one of the primary causes of slow page loads.<br><br>To optimize image performance, use a module like <a href=\"https:\/\/github.com\/yireo\/Yireo_Webp2\" target=\"_blank\" rel=\"noopener\">Yireo_Webp2<\/a>, which automatically converts your images into the modern and highly compressed WebP format.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Implementing WebP can significantly reduce image file sizes, resulting in faster loading times and improved Google Lighthouse scores.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Step 3 \u2013 Optimize CSS &amp; JavaScript<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Although Hyv\u00e4 is inherently lightweight, adding custom scripts or third-party extensions can add unnecessary bloat.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Follow these practices to maintain the store performance while adding store-specific customizations.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Minify CSS &amp; JS files to reduce file size.<\/li>\n\n\n\n<li>When adding custom CSS or JS, ensure the code is clean, minimal, and free of unnecessary components.<\/li>\n\n\n\n<li>Use modern Hyv\u00e4 Approach as Hyv\u00e4 avoids Magento\u2019s traditional bundling and minification process by leveraging Tailwind CSS and Alpine.js.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Step 4 \u2013 Edit Image Attributes<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Ensure all images have proper alt tags and height\/width attributes.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Add descriptive alt text to maintain a good SEO. This helps search engines understand the image context better.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">It is important to not repeat the image alt text as surrounding text to avoid repetition.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Example:&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">&lt;p&gt;&lt;a href=&#8221;index.html&#8221;&gt;&lt;img src=&#8221;images\/home-icon.png&#8221; alt=&#8221;<strong>Home Page<\/strong>&#8221; width=&#8221;24&#8243; height=&#8221;25&#8243;&gt;<strong>Home Page<\/strong>&lt;\/a&gt;&lt;\/p&gt;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">As you can notice in the above example, &#8220;Home Page&#8221; is written twice, affecting the usability.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Additionally, missing attributes can cause layout shifts (CLS issues) and negatively impact performance. Always define them to maintain stable rendering.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You can use site audit tools or conduct manual inspections to identify images missing these attributes, ensuring improved usability, SEO, and compliance.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Step 5 \u2013 Ensure ARIA Labels are Properly Implemented<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Make sure ARIA labels are correctly passed to elements. This improves accessibility for users relying on screen readers and ensures better semantic structure for your site.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">It is important to note that unnecessary aria labels are not added to the code like &lt;button aria-label=&#8221;Send&#8221;&gt;Send&lt;\/button&gt;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For example;&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Do this: &lt;input placeholder=&#8221;Enter search term&#8221; aria-label=&#8221;Enter search term&#8221;&gt;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Avoid this: &lt;button id=&#8221;alempty&#8221; aria-label=&#8221;&#8221;&gt;&lt;\/button&gt;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Step 6 \u2013 Use WOFF2 for Fonts<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Use the Web Open Font Format (WOFF2) to optimize font files.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">They offer superior compression compared to older formats like TrueType (TTF) or OpenType (OTF). This reduces file sizes and speeds up font loading, leading to faster page rendering and a smoother user experience.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Step 7 \u2013 Use Different Images for Desktop and Mobile<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">In order to avoid a poor Largest Contentful Paint (LCP) score, optimize images for different devices.&nbsp;<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Use smaller, compressed images for mobile screens.<\/li>\n\n\n\n<li>Serve high-resolution images only for desktop where needed.<\/li>\n<\/ul>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">&lt;picture>\n\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0&lt;!-- Mobile Image -->\n\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0&lt;source srcset=\"https:\/\/bedwenplants.co.uk\/media\/wysiwyg\/home\/inspirations-shady-plants-banner-PB-mobile.jpg\" type=\"image\/webp\" media=\"(max-width: 768px)\">\n\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0&lt;source srcset=\"https:\/\/bedwenplants.co.uk\/media\/wysiwyg\/home\/inspirations-shady-plants-banner-PB-mobile.jpg\" media=\"(max-width: 768px)\">\n\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0&lt;!-- Desktop Image -->\n\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0&lt;source srcset=\"https:\/\/bedwenplants.co.uk\/media\/wysiwyg\/home\/inspirations-shady-plants-banner-PB.webp\" type=\"image\/webp\">\n\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0&lt;img src=\"https:\/\/bedwenplants.co.uk\/media\/wysiwyg\/home\/inspirations-shady-plants-banner-PB.jpg\" width=\"400\" height=\"205\" alt=\"Green shade loving foliage of ferns and hostas.\" class=\"pb-2 w-full h-auto\">\n\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0&lt;\/picture><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">This HTML code with &lt;picture&gt; elements helps to load the correct images based on the device, reducing load time and improving performance.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Step 8 \u2013 Optimize Loading of External Scripts<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">External JavaScript files (e.g., analytics, chat widgets, tracking scripts) can block rendering and significantly reduce PageSpeed scores.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The best practice is to use the standard Hyva script code structure:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">window.addEventListener('init-external-scripts', () => {\n\nPut code here\u00a0\n\n}, {once: true, passive: true});<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Key Reasons for Hyv\u00e4 Theme Speed Optimization<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">By following these steps, you can significantly improve your website&#8217;s speed with the Hyv\u00e4 theme.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">A proper optimization helps you to:&nbsp;<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Go beyond the default theme, most stores include custom scripts, widgets, or third-party extensions. These can add weight and reduce performance if not optimized.<br><\/li>\n\n\n\n<li>Avoid large banners, uncompressed images, and auto-play videos often slow down page load times. Proper optimization ensures speed without compromising quality.<br><\/li>\n\n\n\n<li>Fine-tuning essential SEO elements and scripts to achieve high Lighthouse scores, especially for CLS, LCP, and FID.<br><\/li>\n\n\n\n<li>Add additional server-side caching<strong> <\/strong>for stores with large catalogs and higher traffic\u00a0 to maintain peak performance.<br><\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Whenever you check your website&#8217;s performance using Google PageSpeed Insights, you can use the suggestions generated by Google to guide your optimization efforts as there are a lot of other steps that need to be applied that are different considering your website structure.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Simply address each suggestion one by one to further enhance your website&#8217;s speed.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hyv\u00e4 is lightweight and fast compared to Luma or other storefronts. But still, you must fully optimize for your store. As each website has unique&#8230;<\/p>\n","protected":false},"author":5,"featured_media":21660,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[5869],"tags":[],"class_list":["post-21655","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-hyva-themes"],"acf":[],"_links":{"self":[{"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/posts\/21655","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/comments?post=21655"}],"version-history":[{"count":5,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/posts\/21655\/revisions"}],"predecessor-version":[{"id":21674,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/posts\/21655\/revisions\/21674"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/media\/21660"}],"wp:attachment":[{"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/media?parent=21655"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/categories?post=21655"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/tags?post=21655"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}