Mamba Frontend Overhead Optimizations

These options reduce frontend overhead across your site to improve perceived speed and responsiveness without touching critical checkout flows. You’ll find them in the Performance tab under User-facing Optimization.


Dequeue WooCommerce Assets (on non-Woo pages)

What it does

  • Removes WooCommerce styles (layout, smallscreen, general, block styles) and scripts (cart, single product, price slider, etc.) on pages that don’t use WooCommerce

When to enable

  • Most stores benefit immediately, especially content-heavy sites where WooCommerce assets aren’t needed on posts, landing pages, or CMS content

Why it’s safe

  • Assets remain loaded on WooCommerce pages (Shop, Product, Cart, Checkout, Account)
  • Only non-Woo pages are trimmed

Tip

  • If a custom page template uses a WooCommerce widget or shortcode, re-enqueue just what you need for that page

Simplify Price HTML

What it does

  • Cleans up price markup by removing <bdi> wrappers, replacing currency spans with raw symbols, and stripping screen-reader helper spans

Impact

  • Reduces DOM complexity for slight rendering savings
  • Produces cleaner markup for crawlers and snippet generation

A11y note

  • Screen-reader hints may be reduced; if your store relies on verbose accessibility hints in price output, keep this off

Enable Hover Prefetch

What it does

  • Adds a lightweight script that prefetches target pages when a user hovers or touches a link
  • Makes navigation feel instant between catalog, product, and content pages

Where it runs

  • All pages except Checkout (intentionally skipped)

Benefits

  • Dramatically improves perceived speed when navigating within your domain

Disable Order Attribution (on non-checkout pages)

What it does

  • Removes WooCommerce’s order attribution tracking script everywhere except Checkout

Impact

  • Reduces script execution and network requests on browsing pages
  • Checkout still retains full attribution tracking as intended

When to enable

  • Recommended for most stores
  • Keep off only if you require detailed attribution data outside Checkout

Troubleshooting

  • A page looks unstyled after enabling Dequeue Assets
    → That page may rely on WooCommerce styles. Re-enable the option or enqueue needed styles manually.
  • Price display looks different
    → “Simplify Price HTML” removes wrappers and spans. If your theme styles target those elements, adjust CSS or leave this off.
  • Prefetch seems aggressive
    → The script only prefetches on strong user intent (hover/touch). If bandwidth is a concern, disable it on specific templates.
  • Missing attribution insights on non-checkout pages
    → If your analytics depends on attribution outside Checkout, leave Disable Order Attribution off. Checkout itself is unaffected.

Copyright 2025 - Mamba


Mamba mascot