Cardinal docs/Advanced
Performance
What the theme does for speed, and the three things that are up to you.
Speed is the part of a storefront most directly tied to revenue, and it is mostly decided by content rather than by code. Cardinal handles the code side; this page covers the rest.
What the theme does
- Responsive images. Every image is requested at a size appropriate to the screen, with width and height set so nothing shifts as the page loads.
- Lazy loading, except where it hurts. Images below the fold load as they approach the viewport. The image that usually decides your Largest Contentful Paint does not wait: the first slide of a slideshow, or a banner, placed first on a page loads straight away at high priority, and so does the first item in a product gallery.
- Media on demand. Product videos and 3D models show a preview image and load nothing more until the customer presses play.
- Deferred JavaScript. Scripts never block rendering, and each section only loads the JavaScript it actually uses. The 3D viewer, augmented reality and the gift card QR code come from Shopify's own servers rather than being bundled into the theme.
- Small, split stylesheets. One compact stylesheet loads on every page; each section's styles load only on pages that use that section.
- Font preloading, with
font-display: swap, so text is readable before webfonts arrive. - Deferred recommendations. Related products load after the rest of the page.
1. Your images
This is the single largest factor and it is entirely in your hands.
- Export at roughly twice the display size, then stop. A 4000px-wide hero is not sharper than a 2800px one on any screen anyone owns.
- Save as JPEG for photographs. Shopify converts to WebP automatically where it is supported.
- Reserve PNG for logos and graphics with transparency. A photograph saved as PNG can be ten times larger for no visible gain.
- Compress before uploading. Most photos survive 80% JPEG quality with no visible loss.
Focal points
The theme crops images to fit their space — a wide banner, a portrait product card, a different shape on mobile. Set a focal point on an image and every crop keeps that point in view. Set it in the theme editor by choosing Edit on the image in its picker, or under Content → Files. It works on every image in the theme, and there is no theme setting to turn on.
2. Your apps
Apps are the most common cause of a slow Shopify store, because each one can add scripts that run on every page — including pages it has nothing to do with.
- 01Uninstall apps you no longer use. Do not just disable them.
- 02After uninstalling, check Online Store → Themes → Edit code for leftover script tags the app did not clean up.
- 03Prefer apps that use Shopify's app blocks and app embeds — they load in a controlled way.
- 04Be especially careful with anything that adds a popup, a live chat widget or a tracking pixel. Three of those together are usually worth more than a second.
3. Your homepage length
Every section is more markup, more images and more work. A twelve-section homepage is slower than a seven-section one, and the last five sections are seen by very few people. Trimming the homepage is the easiest performance win nobody takes.
Measuring it properly
Test the published theme, not a preview — preview mode adds the theme editor's own overhead and will give you a misleadingly poor score.
- Shopify admin → Online Store → Themes shows a speed score based on real visits to your store.
- PageSpeed Insights gives a detailed breakdown. Read the Opportunities list, not just the number.
- Test the homepage, a collection page and a product page — they have very different profiles.
Still stuck? Contact support and we will help.