← All guides Performance

Navigation and Page Speed: How a Menu Affects Core Web Vitals on Shopify

How a Shopify menu can affect Core Web Vitals, why some theme menus get heavy, and how to test any menu or menu app before and after on a copy of your theme.

A menu sits at the top of every page, so it is part of how fast your store feels. Shoppers tap it early and often. If the menu is slow to appear or slow to open, shoppers notice, and Google’s Core Web Vitals can notice too.

This guide explains in plain language how a menu can affect speed, why some theme menus get heavy, and how to test any menu, including a menu app, on a copy of your theme before you decide. We do not quote speed numbers for apps here, because results depend on your theme, your catalog and your device. Measure your own store.

Key Takeaways
  • Three signals: Google tracks loading (LCP), response to taps (INP) and layout jumps (CLS). A menu can touch all three.
  • Weight comes from markup and scripts: many links, duplicate mobile and desktop markup, and scripts that run before the page is ready.
  • Test, do not guess: compare before and after on a copy of your theme, with the same page, the same device and several runs.

How a Menu Affects Core Web Vitals

Google measures page experience with three Core Web Vitals. Each one has a published “good” threshold, measured on real visits:

  • LCP (Largest Contentful Paint): how fast the biggest element appears. Good is 2.5 seconds or less. A menu is rarely the largest element, but styles and scripts loaded early can delay the hero image. (web.dev: LCP)
  • INP (Interaction to Next Paint): how fast the page responds after a tap, click or key press. Good is 200 milliseconds or less. Menus are tapped a lot, so a slow menu script shows up here. (web.dev: INP)
  • CLS (Cumulative Layout Shift): how much the page jumps while loading. Good is 0.1 or less. A header or bottom bar that appears late and pushes content down adds to CLS. (web.dev: CLS)

Every menu type is on screen early: bottom navigation bars, mega menus and Hamburger Menu buttons. In practice a menu is lighter on speed when its scripts do not block the page (for example loaded with defer), when its space is reserved in CSS so nothing jumps, and when it does not add a large amount of hidden markup.


Why Theme Menus Can Get Heavy

A theme menu is built by Liquid, Shopify’s template language. It loops through your menu links and writes HTML. Here is a simplified example of the nested loop found in many themes:


{%- comment -%}
  Simplified theme menu loop: snippets/header-mega-menu.liquid
  Every menu link is written into the page HTML by this loop.
{%- endcomment -%}

<nav class="header__inline-menu">
  <ul class="list-menu list-menu--inline" role="list">
    {%- for link in section.settings.menu.links -%}
      <li>
        {%- if link.links != blank -%}
          <header-menu>
            <details id="Details-HeaderMenu-{{ forloop.index }}" class="mega-menu">
              <summary class="header__menu-item list-menu__item link focus-inset">
                <span>{{ link.title | escape }}</span>
              </summary>
              <div id="MegaMenu-Content-{{ forloop.index }}" class="mega-menu__content">
                <ul class="mega-menu__list page-width" role="list">
                  {%- for childlink in link.links -%}
                    <li>
                      <a href="{{ childlink.url }}" class="mega-menu__link">{{ childlink.title | escape }}</a>
                      {%- if childlink.links != blank -%}
                        <ul class="list-unstyled" role="list">
                          {%- for grandchildlink in childlink.links -%}
                            <li>
                              <a href="{{ grandchildlink.url }}" class="mega-menu__link">{{ grandchildlink.title | escape }}</a>
                            </li>
                          {%- endfor -%}
                        </ul>
                      {%- endif -%}
                    </li>
                  {%- endfor -%}
                </ul>
              </div>
            </details>
          </header-menu>
        {%- else -%}
          <a href="{{ link.url }}" class="header__menu-item list-menu__item link">{{ link.title | escape }}</a>
        {%- endif -%}
      </li>
    {%- endfor -%}
  </ul>
</nav>

What this means for you:

  1. Every link is written into the page HTML. A very large menu means more HTML for every visitor.
  2. Some themes output a second copy of the menu for mobile, in a separate file, so the page may carry both. Open your theme files and check.
  3. More elements means more work for the browser when the menu opens. This matters most on older phones.
  4. A theme menu is not bad. For a small menu it is often the lightest option. Menu size is what to watch.

The Hidden Cost of display: none

Hiding a menu with CSS on mobile does not make it free:

/* Hiding the menu on mobile does not remove its markup from the page */
@media screen and (max-width: 749px) {
  .header__inline-menu {
    display: none !important;
  }
}
  1. The browser still downloads the HTML for it.
  2. It still builds the elements in memory.
  3. It still checks them against your CSS rules.

This cost is small for a small menu and bigger for a large one. Count the elements on your page before you blame a single app.


Theme Menu vs. Menu App

Both approaches can be fast or slow. This is what actually differs:

  Theme menu (native) Menu app such as Navi+
Where you build it Theme editor or theme code App dashboard
Extra JavaScript Only what the theme already loads The app adds JavaScript to your store
Changing theme Menu is tied to the theme Menu is stored in the app and reused when you change theme (you may need to pick the header position again)
Menu types (Navi+) Depends on the theme Hamburger Menu, Mega Menu and Bottom Tab Bar up to 3 levels; Floating Button 2 levels; Category Grid 1 level
Navigation and page speed (screenshots of public demo pages)
Navigation and page speed: screenshots of public demo pages.

Because an app adds JavaScript, the honest way to compare is to measure. That is the next section.


Measure It Yourself: Before and After Test

Never judge a menu from a single test or from how it feels on your own phone. Use this simple before-and-after test:

  1. Duplicate your theme. In Online Store > Themes, duplicate the live theme. Do all tests on the copy so your live store is not touched.
  2. Measure the “before”. Run PageSpeed Insights on your home page, a collection page and a product page. Run each three times, because lab scores change from run to run. Field data from real visitors, when shown, is collected over weeks, so it will not move right after a change.
  3. Watch the main thread. Open the Performance panel in Chrome DevTools (guide). Turn on CPU throttling and a slow network, record while you tap the menu, and look for long tasks.
  4. Count elements. Run document.querySelectorAll('*').length in the DevTools console and note the number.
  5. Make the change on the copy. For example, turn on the menu app embed. Repeat steps 2 to 4 with the same pages, the same device and the same settings.
  6. Compare. If the difference is small, choose by features. If it is large, change settings, simplify the menu, or pick another option.
  7. Clean up. If you remove a trial app, check your theme code for leftover lines.

Navi+ is a Shopify app. You build menus in the Navi+ dashboard, turn on the app embed in the theme editor, and the menu is stored in the app, so you can reuse it when you change theme.

Navi+ has ready-made placement presets for 331 themes and works on any theme.

Navi+ adds JavaScript to your store, like any menu app. We do not promise a speed score. Compare before and after on a copy of your theme, using the steps above. Keeping menus simple, with fewer levels and links, also helps.


Performance Checklist

  • Count page elements before and after any menu change.
  • Check for duplicate markup: make sure your theme does not output two copies of the menu.
  • Avoid blocking scripts: menu scripts should load with defer or without blocking the page.
  • Reserve space: set the height of sticky headers and bottom bars in CSS so the page does not jump.
  • Test on slower conditions: use CPU and network throttling in DevTools, not only a fast phone.
  • Compare on a theme copy: same pages, same device, several runs.
  • Check leftovers in theme code after removing an app.

Frequently Asked Questions

Can a menu app affect my Google rankings?

Page experience, including Core Web Vitals, is one of many signals Google uses. A menu alone rarely decides your ranking, but a page that is clearly slow or jumps around hurts shoppers and results. Measure before and after a change.

How much JavaScript is acceptable for a menu app?

There is no fixed number that fits every store. Less is better. Use the Network tab in Chrome DevTools to see what each script costs on your own store, and compare before and after.

Why does my PageSpeed score drop even when the menu feels fast?

Lab tests simulate a slower phone and network than your own device. Heavy markup and scripts hurt more there. Scores also change between runs, so test several times and compare the average.


References

  1. Google: Interaction to Next Paint (INP). web.dev
  2. Google: Largest Contentful Paint (LCP). web.dev
  3. Google: Cumulative Layout Shift (CLS). web.dev
  4. Chrome for Developers: Analyze runtime performance (Performance panel). developer.chrome.com
  5. Shopify: App performance best practices. Shopify.dev

Explore the topics

This guide links out to focused articles — dive deeper on each.

Share Facebook X LinkedIn

Build a navigation your shoppers love

Navi+ helps you create high-converting menus for Shopify and any website — no code.

Try Navi+ free See Live Demo →
Explore menus: Bottom Tab Bar • Desktop Mega Menu • Hamburger Menu • Floating Button • Plans & Pricing

Get started with Navi+

Pick your platform — free to install, live in minutes.