Partials: can't be combined with section_id, and the import map is only injected when the page renders a partial

Thanks @Yoni-Shopify, much appreciated!

One more thing that would fit the same request: supporting partials wherever the Section Rendering API is supported today, not only with section_id on pages:

  • Cart AJAX API: partials and partials_url parameters, mirroring sections and sections_url, on /cart/add.js, /cart/change.js, /cart/update.js and /cart/clear.js. Bundled section rendering returns the updated HTML in the mutation response (1 request); with partials we’d currently need a second request, so we keep using sections for the cart. partials_url matters even more than sections_url, since a partial is a fragment of a specific page render (e.g. cart lines from /cart, an upsell from the product page).
  • Predictive Search API: partials on /search/suggest, as section_id is today.

This would let themes drop the “technical” sections that only exist to be fetched via AJAX (cart drawer, predictive search results, upsells…) and render fragments of the real templates instead.