Stored page text, served from the archive.
Stored text only -- layout, images, and scripts from the original page are not preserved.
Shopify Developer Community Forums A Liquid Partials Experiment Online Store and Theme Development liquid , performance Octavian August 1, 2026, 5:08am 1 I’ve been treating Liquid partials as a small experiment: can a Liquid theme feel like an SPA without going headless? Short answer: closer than I expected. Longer answer: the fun part works; the platform glue still needs shopify engineering The experiment I forked Horizon 4.1.3 and wired up the partial-rendering runtime so the header, footer, and cart chrome stay in the DOM. Only a page-content region swaps when buyers navigate - collection to product, header links, that kind of browse flow.
History API, prefetch on hover, View Transitions, the usual polish. It maps cleanly onto how people already think about SPAs: Persistent shell - nav, cart, drawer state survive route changes Server-rendered HTML - Liquid stays the source of truth; no parallel GraphQL UI layer Named regions - fetch and replace what changed, not the whole document In my benchmarks, collection to product went from about 1.2 seconds (full reload) to about 49 ms (partial swap). Live demo (password: ocontis): The header does not blink when you click a product card. Standard storefront events shopify:page:view , etc.
work after each swap. Web pixel customer events page_viewed , etc. do not - WPM init is once-per-document, and the only fix I found was a theme-side intercept before content_for_header. It works; it should not live in theme code.
I think partials are a good fit for SPA-like architecture inside the Online Store stack and there might be a nice opportunity there. Shopify stepping in on pixel lifecycle (and maybe shell UX patterns) would keep it from feeling hacky. Try it on github . Full technical and performance breakdown on my blog Curious if anyone else is experimenting with partials for in-store navigation.
Gray-Shopify August 4, 2026, 6:34pm 2 This is very cool! I’ll see what we can do about web pixels on our side. Octavian August 5, 2026, 9:29am 3 @Gray-Shopify oh that would be so nice! at the moment that was the only “production ready” blocker i could find to be fair.
Now of course a lot of apps inject stuff in content_for_header which is another story. However, i an ideal world where event lifecycle is managed via shopify pixels, anything that foes into content_for_header should in theory only need to load once. On a similar note, I’ve been quite surprised to find out that pageview events on theme and pixels are managed completely differently. We live and learn!
dangayle August 24, 2026, 6:28am 4 I’m really interested to see how this turns out from a web perf perspective. Octavian August 24, 2026, 6:41am 5 @dangayle for lighthouse scores, you can check the live demo theme, left the password in the post above. I also have some breakdown comparison on the blog - link in the original post as well. Related topics Topic Replies Views Activity Lack of flexibility for partials Online Store and Theme Development liquid 3 107 September 16, 2026 @shopify/partial-rendering package doesn't exist on npm Online Store and Theme Development liquid 3 175 September 14, 2026 Partial tag is being recognized as an unknown tag in the Shopify code editor Theme Store 1 79 July 24, 2026 Using app proxy with response liquid loads the header and footer before loading the proxy html and styles causing a glitch in appearance Online Store and Theme Development 1 106 October 22, 2025 Will the new partial tag be supported in theme app extensions?
Extensions theme-app-extension 1 115 July 22, 2026 Home Categories Guidelines Terms of Service Privacy Policy Powered by Discourse , best viewed with JavaScript enabled