# WordPress script modules fetchpriority for WooCommerce block themes in 2026

Use wp_enqueue_script_module fetchpriority low, in_footer, and Interactivity defaults in 6.9 so navigation and mini-cart scripts stop stealing LCP bandwidth on block storefronts.

- Date: 2026-11-27
- Category: WordPress

## Table of contents

- Why WordPress script modules fetchpriority matters on WooCommerce catalogues
- How WordPress script modules fetchpriority works in core 6.8 and 6.9
- Production checklist for WordPress script modules fetchpriority on live stores
- What breaks when WordPress script modules fetchpriority is misconfigured
- How to measure WordPress script modules fetchpriority changes on a store
- Related work on this site
- FAQ
  - Does WordPress script modules fetchpriority apply to classic WooCommerce PHP themes?
  - What is the default WordPress script modules fetchpriority for Interactivity API blocks in 6.9?
  - Can I set in_footer true for every WooCommerce block script module?
  - How does WordPress script modules fetchpriority interact with high-priority product images?

WordPress script modules fetchpriority is the lever I reach for in late 2026 when a WooCommerce block theme ships interactive navigation, filters, or a mini-cart, yet field LCP still stalls on hero product photography. I am Alan Vo, a Gold Coast web developer with 18 years on WordPress catalogues. Core 6.8 introduced `fetchpriority` on classic scripts and script modules; WordPress 6.9 pushes that further by defaulting interactive block view modules to `fetchpriority="low"` and by letting block themes print compatible modules in the footer. This note is for developers who already moved custom storefront UI to the [WordPress Interactivity API](https://alanvo.com/blog/wordpress-interactivity-api/) and need the network queue to respect the product image, not another deferred JavaScript file.

Script modules are not legacy `wp_enqueue_script()` bundles. They load as ES modules with an import map, defer by default, and power interactive blocks including WooCommerce patterns that lean on `@wordpress/interactivity`. Browsers still assign them a high fetch priority unless you say otherwise. That behaviour collides with catalogue pages where the LCP element is almost always an `IMG` tag WordPress already marks with `fetchpriority="high"` when it guesses correctly. The [WordPress 6.9 Frontend Performance Field Guide](https://make.wordpress.org/core/2025/11/18/wordpress-6-9-frontend-performance-field-guide/) documents median LCP gains when low-priority modules stop contending with that hero request on a block theme with navigation interactivity.

This note assumes a block-first stack: full site editing, WooCommerce block checkout or cart blocks, and no page builder re-injecting blocking scripts in the header. Pair it with [WordPress block themes and full site editing](https://alanvo.com/blog/wordpress-block-themes/) for template wiring and with [defer third-party tags](https://alanvo.com/blog/defer-third-party-tags/) when GTM and consent scripts still sit beside core modules.

## Why WordPress script modules fetchpriority matters on WooCommerce catalogues

WordPress script modules fetchpriority matters on WooCommerce catalogues because category and product templates stack several interactive assets at once: primary navigation, product collection filters, search modals, and often a header mini-cart. Each block may server-render its HTML, so the JavaScript is not in the critical rendering path for first paint, yet the browser still schedules those module files early unless core deprioritizes them. On a product listing page, that is bandwidth stolen from the first row of product thumbnails or from a single large lifestyle image above the fold.

Store owners rarely see the conflict in Lighthouse alone. Lab scores can look fine while CrUX LCP on `/product-category/` regresses after a theme update adds another interactive pattern. The performance field guide calls out navigation with a featured image as a concrete test case: one interactive block in the header plus an LCP image is enough to measure contention. WooCommerce adds more surface area because archive templates chain Product Collection, Product Filters, and sorting UI that all share the same global header template part.

![WordPress script modules fetchpriority in the block editor on a laptop](../../images/blog/wordpress-script-modules-fetchpriority-1.jpg)

From a delivery standpoint, fetch priority is a hint, not a guarantee. Chrome, Safari, and Firefox treat `fetchpriority="low"` on scripts and modules as a nudge to reorder the network queue relative to same-origin images and CSS. It complements image work such as AVIF delivery and tight `sizes` attributes documented in [WordPress AVIF and WebP image delivery](https://alanvo.com/blog/wordpress-avif-webp-images/). It does not replace removing unused blocks or shrinking import maps on checkout.

Merchant-facing risk is subtle. Checkout and thank-you pages should stay boring: fewer interactive blocks, system fonts, minimal header JavaScript. Applying global header template parts that enqueue navigation modules on every route, including pay flows, is a common way stores lose INP after a “just enable the mini-cart everywhere” request. fetchpriority tuning is one guardrail; template conditional enqueue is the other.

## How WordPress script modules fetchpriority works in core 6.8 and 6.9

WordPress script modules fetchpriority works through the fifth `$args` array on `wp_register_script_module()` and `wp_enqueue_script_module()`, mirroring the script strategies added for classic scripts in older releases. Valid values are `auto`, `low`, and `high`, as documented on [`wp_enqueue_script_module()`](https://developer.wordpress.org/reference/functions/wp_enqueue_script_module/). For classic scripts, `wp_register_script()` and `wp_enqueue_script()` accept the same `fetchpriority` key in `$args`.

Core 6.9 changes defaults for interactive blocks. View script modules wired to the Interactivity API receive `fetchpriority="low"` automatically, including custom blocks outside bundled core. That default reflects how SSR interactivity works: HTML arrives first, hydration can wait. The field guide also notes `comment-reply` as a classic script that picks up a low default, which matters on blogs attached to commerce sites even when the shop is block-driven.

Footer placement is the second half of the story. Block themes can set `in_footer => true` when registering a module so `WP_Script_Modules` prints it after the body content instead of in the head. The [`WP_Script_Modules::print_head_enqueued_script_modules()`](https://developer.wordpress.org/reference/classes/wp_script_modules/print_head_enqueued_script_modules/) routine only runs for block themes because the import map is complete after the block template renders. Classic themes that mix PHP templates with a few blocks may not get the same head-or-footer split; know which mode the storefront uses before copying snippets from a block-theme-only doc.

Dependency sorting still applies. If a parent module stays in the head, child modules marked for the footer may skip head printing when a dependency chain forces a single injection point. Read the source comments in the Script Modules class when debugging “I set in_footer but still see the tag upstairs” tickets.

![Developer desk with two monitors during WordPress script modules fetchpriority work](../../images/blog/wordpress-script-modules-fetchpriority-2.jpg)

Custom WooCommerce or agency blocks should register modules explicitly instead of relying on bundled defaults alone:

```php
wp_enqueue_script_module(
    '@myagency/store-filters',
    plugins_url( 'build/view.js', __FILE__ ),
    array( '@wordpress/interactivity' ),
    '1.2.0',
    array(
        'fetchpriority' => 'low',
        'in_footer'     => true,
    )
);
```

Use `high` sparingly, usually only for a module that must run before LCP for legal or security reasons, and document why it overrides the interactive default. `auto` leaves the decision to the browser, which often behaves like `high` for modules.

Import maps and `modulepreload` links follow the same priority hints in 6.8+, so changing fetchpriority on one registered handle can affect how eagerly related files prefetch. After deploy, verify the actual HTML attribute on the `<script type="module">` tag, not only the PHP registration array.

Module discovery during block template rendering is why footer printing is block-theme-only. On a classic WooCommerce PHP theme with a single interactivity block dropped into a widget, you may still see head output. Migrating archive templates to block templates is the durable fix if INP and LCP drive the roadmap.

## Production checklist for WordPress script modules fetchpriority on live stores

WordPress script modules fetchpriority rollout is production-ready when interactive modules are low or footer by default, checkout routes stay lean, and you can prove LCP image requests win the network race on real PLP and PDP URLs.

1. **Upgrade path.** Plan WordPress 6.9+ on staging before tuning. Defaults for interactivity modules change; diff head output on navigation and mini-cart templates after core update.
2. **Inventory modules.** List every `type="module"` script on home, category, product, cart, and checkout. Mark which blocks own them and whether SSR still works with JavaScript disabled for crawlers.
3. **Set explicit low priority** on agency blocks that are interactive but not in the Interactivity API bucket yet. Do not assume future core will classify them.
4. **Use `in_footer` on block themes** for storefront-only modules (filters drawer, size guide accordion) when HTML is complete without them.
5. **Keep checkout headers thin.** Swap to a minimal template part on checkout that omits navigation interactivity modules. fetchpriority helps; absence helps more.
6. **Align with image LCP work.** Confirm the hero product or category banner still gets `fetchpriority="high"` from core heuristics. Fix attachment sizing before chasing another script hint.
7. **Avoid duplicate registrations** from a plugin and a child theme both enqueueing the same module handle with different args. Last registration wins and confuses QA.
8. **Test Product Filters and Collection pairs** on the same archive URL. WooCommerce interactivity stacks multiply module count quickly.
9. **Purge full-page cache** after deploy so HTML reflects new script attributes. Edge caches serving yesterday’s head tags hide wins.
10. **Document exceptions** where marketing insists on a high-priority A/B snippet. Those belong in GTM with deferral patterns, not in a competing module in the theme header.

![Website wireframes on paper next to a keyboard](../../images/blog/wordpress-script-modules-fetchpriority-3.jpg)

On multisite or headless hybrids, only the WordPress front that prints block templates benefits from footer module placement. Decoupled front ends must implement their own priority hints.

Staging should mirror HTTP/2 or HTTP/3, because priority semantics differ from local HTTP/1.1 MAMP stacks. Use the same CDN worker rules production uses.

## What breaks when WordPress script modules fetchpriority is misconfigured

WordPress script modules fetchpriority misconfiguration shows up as mysterious LCP regression, broken interactivity, or scripts that ignore footer placement.

**Setting `high` on every custom module** reverses the 6.9 win. Developers sometimes copy old `wp_enqueue_script()` habits and force priority on deferred modules that should stay low. The network queue refills with script bytes ahead of the product grid images.

**Expecting footer placement on a classic theme** leads to “it never moved” bug reports. Footer module printing depends on block theme template rendering populating the import map. Hybrid themes need a different strategy or a move to block templates for archives.

**Disabling JavaScript to test SSR, then shipping without retesting hydration**, masks broken directives until merchants click filters. fetchpriority does not fix invalid interactivity stores; it only reduces contention.

**Plugin conflicts** that register the same module ID with `auto` after your theme registered `low` can reset attributes. Use distinct handles or dequeue on specific templates with documented priorities.

**CSP and nonce plugins** that rewrite script tags sometimes strip `fetchpriority` or move modules back to the head for compliance. Check HTML post-filter, not only PHP.

**Edge workers** that inject early scripts for analytics fight both low-priority modules and high-priority images. Fix tag loading order before blaming core defaults.

**Over-aggressive `in_footer` on a module that must initialize before user input** can delay comment forms or consent banners in ways consent auditors care about. Checkout consent should stay synchronous enough to meet policy; do not bury required CMP bootstrap modules footers without legal sign-off.

![Content editor reviewing a page on a tablet](../../images/blog/wordpress-script-modules-fetchpriority-4.jpg)

## How to measure WordPress script modules fetchpriority changes on a store

WordPress script modules fetchpriority changes should be measured on real product URLs with filmstrip and network priority columns, not only aggregate lab scores.

Capture a WebPageTest run on a category page and a PDP before and after deploy. Compare start render, LCP element type, and whether module requests appear above the LCP image in the connection view. Chrome DevTools Performance panel shows “Downloaded high” versus “Downloaded low” priority when recording with the network throttling profile you use for client reports.

Segment CrUX in Search Console by template if your property groups `/product/` and `/product-category/`. Median LCP movement after a core upgrade sometimes appears only on archives where filters load.

Watch INP on interactions that actually use the modules: opening navigation, toggling filters, opening mini-cart. Lower fetch priority should not delay hydration enough to hurt input delay; if it does, the module may be oversized or doing sync work on first paint.

Log server TTFB separately. fetchpriority never fixes slow PHP or cold database queries on seasonal traffic.

After WooCommerce or plugin updates, re-run a three-URL smoke test: home, best-selling product, checkout. Screenshot the script tags in view-source or cached HTML stored in your release ticket.

Compare bytes: total JavaScript transferred for modules should stay flat; only ordering changes. If bytes jump, a block update added another view script, not a priority issue.

## Related work on this site

I tune script modules on block WooCommerce builds where header interactivity is non-negotiable for brand UX but product photography must win LCP. The [Skanvi](https://alanvo.com/work/skanvi/) project paired block archives with conservative header JavaScript so editorial heroes stayed the largest paint. [Bridgeworx](https://alanvo.com/work/bridgeworx/) taught me how long legacy enqueued scripts linger in merchant expectations; migrating those sites means proving navigation still works when modules defer harder. [Sophia Pro Theme](https://alanvo.com/work/sophia-pro-theme/) work focused on theme-owned bundles before core defaults caught up, which is the baseline I compare against when 6.9 changes head output without a child theme diff.

## FAQ

### Does WordPress script modules fetchpriority apply to classic WooCommerce PHP themes?

fetchpriority attributes apply whenever you enqueue script modules or classic scripts through core APIs, but footer module placement and import map completion are block-theme workflows. A classic PHP theme may still register modules for individual blocks; treat fetchpriority as an HTML hint on those tags. Move archive templates to block themes if you need the full 6.9 footer printing behaviour.

![Laptop and coffee while shipping WordPress script modules fetchpriority](../../images/blog/wordpress-script-modules-fetchpriority-5.jpg)

### What is the default WordPress script modules fetchpriority for Interactivity API blocks in 6.9?

Interactive blocks that use the Interactivity API get `fetchpriority="low"` on their view script modules by default in WordPress 6.9, including custom blocks. Classic scripts default to `auto`, which browsers often treat like high priority unless defer or async strategies say otherwise. Override only with a documented reason.

### Can I set in_footer true for every WooCommerce block script module?

You can set `in_footer` to true on block themes for modules that do not need to run before first paint, but dependency chains and core printing rules may keep some tags in the head. Test cart and checkout carefully because payment field focus and validation plugins sometimes assume early scripts. Checkout templates should use the smallest set of modules regardless of footer support.

### How does WordPress script modules fetchpriority interact with high-priority product images?

Core may add `fetchpriority="high"` to likely LCP images while lowering interactive module priority. The browser can schedule the image request ahead of low-priority module fetches, which is the intended pairing on catalogue pages. If LCP is text, not an image, revisit font and CSS priority before forcing module `high`. Image sizing and format choices still dominate LCP when the element is photographic.


![WordPress script modules fetchpriority in the block editor on a laptop](../../images/blog/wordpress-script-modules-fetchpriority-6.jpg)


HTML version: https://alanvo.com/blog/wordpress-script-modules-fetchpriority/
