AEM performance tuning: cache ratio first, phased rendering second

Most slow AEM sites aren't short on server capacity. They're making one of two mistakes: sending too many requests back to publish, or loading the page in the wrong order. AEM performance tuning goes fastest when you fix those two in that sequence, and only then reach for the JVM.
This guide is for the people who own the result: AEM architects, front-end leads and the digital directors who approve the budget. It's laid out in the order the work should happen on an existing AEM Sites build, whether you run 6.5 or AEM as a Cloud Service. Each step says what to change and how you'll know it worked.
What AEM performance tuning covers, and the numbers to hit
Any AEM performance optimization project has a server half and a browser half. The server half is how fast publish, Dispatcher and the CDN return HTML. The browser half is the order in which clientlibs, images and third-party scripts arrive.
They fail differently. A slow server makes every page slow. A badly ordered page can be slow on a fast server, and that's the more common surprise.
Google measures what visitors feel with three Core Web Vitals. According to web.dev's Core Web Vitals guide, a page passes when 75% of visits hit all three targets. INP replaced FID as the interactivity metric in 2024. Adobe adds server-side numbers of its own.
| Metric | Target | Where it comes from |
|---|---|---|
| Largest Contentful Paint (LCP) | 2.5 seconds or less | web.dev |
| Interaction to Next Paint (INP) | 200 ms or less | web.dev |
| Cumulative Layout Shift (CLS) | 0.1 or less | web.dev |
| Uncached HTML on publish | Under 100 ms; no page slower than 1 second | Adobe, AEM 6.5 performance guidelines |
| Dispatcher cache ratio | 90%–95% | Adobe, AEM 6.5 performance guidelines |
| Payload before LCP (Edge Delivery Services) | Below 100 KB | Adobe, "Keeping it 100" |
The payload budget comes from Edge Delivery Services, but it's a sensible ceiling on any build.
The business case is easy to make. In a 2021 web.dev case study, Vodafone reported that a 31% improvement in LCP increased sales by 8%. Your numbers will differ. The direction rarely does.
Step 1: Measure real visitors, by template
Don't start from a single Lighthouse run on the homepage. That's one page in a lab, and the pages that cost you money are usually campaign and product templates.
Pull four weeks of LCP, INP and CLS by template. Note which templates fail and on which device. Look at mobile first, since Adobe's own Edge Delivery gate tests mobile because it's harder to pass.
On AEM as a Cloud Service, Adobe gives you three tools for Sites performance, and each sees a different slice:
| Tool | What it measures | What to know |
|---|---|---|
| Experience Audit in Cloud Manager | Google Lighthouse scores for performance, accessibility, best practices and SEO | Homepage only unless you add paths; maximum 25 paths; results are informational |
| Operational Telemetry | Real-user LCP, INP, CLS and TTFB | On by default for pages under /content; samples 1 in 100 page views; needs Cloud Service 2024.5.16461 or later |
| AEM Sites Optimizer | Pages whose Core Web Vitals are underperforming, with code-level fix suggestions | Uses Operational Telemetry data; a page needs at least 1,000 page views to be analyzed |
Add your 25 most important templates and landing pages to Experience Audit. Its dashboard shows median Lighthouse scores and the difference from the previous scan, so a regression shows up the day it ships. When those lab scores disagree with Operational Telemetry, believe the real visitors. On 6.5, you'll need your own real-user monitoring to get the same view.
Speed data tells you what is slow, not what slow is costing. Tie it to conversion and bounce data in Adobe Analytics, so the budget conversation has revenue in it as well as milliseconds.
Step 2: Get the Dispatcher cache ratio to 90%–95%
On most AEM sites, this is the cheapest win available. The cache ratio is total requests minus requests that reached publish, divided by total requests. Take the totals from the Apache access.log and the publish count from the AEM request.log. Adobe recommends 90%–95%. At 60%, no amount of front-end work will hide it.
The same logs list the URLs that miss the cache. Dispatcher caches files addressed by URL, and Adobe's performance guidelines note that it can't cache cookies, session data or form data. Most misses trace back to a short list of causes:
- Query strings. Dispatcher won't cache a request carrying any parameter you haven't told it to ignore with
/ignoreUrlParams, so list your campaign and tracking parameters there. Where output really does vary, use selectors. Adobe's example isgallery.christmas.1.html. - Page-level personalization. Adobe notes that 10 cacheable start pages perform better than 1 freely customizable one. Personalize a component, not the page.
- Over-eager invalidation. Publishing a page clears the affected files plus parent paths up to
/statfileslevel. Set it too low, and one publish flushes half the site. Varyheaders. Adobe's cache optimization article warns they can make both the CDN and the browser skip caching.Vary: Accept-Encodingis the exception. Otherwise, serve different output from a different URL.
Two settings soften the misses you can't avoid. /gracePeriod lets Dispatcher serve a stale, auto-invalidated file for a few seconds while it refetches, and Adobe recommends 2 seconds. Gzip at the Dispatcher cuts the bytes sent to the CDN. Leave images and video out of it, since they're already compressed.
On AEM as a Cloud Service, tune the CDN headers too
Adobe's caching documentation sets reasonable defaults. HTML is cached for 5 minutes in the browser and at the Adobe-managed CDN. Clientlibs get an immutable cache header, or 30 days for browsers that don't support it.
Adobe suggests a 30-minute stale-while-revalidate as a starting point. The CDN then serves the old copy while it fetches the new one, so visitors don't wait on publish after every expiry. Keep header rules narrow, because a broad regex can put private content in a shared cache.
Step 3: Get uncached HTML under 100 ms on publish
AEM renders HTL pages on the publish tier, so the HTML arrives complete. For most Sites pages, that server-side rendering is the right model. The content sits in the markup, Dispatcher and the CDN can cache it, and the browser runs less JavaScript before anything appears. Client-side rendering earns its place in app-like areas such as account dashboards, and rarely anywhere else.
Adobe's target is under 100 ms for uncached HTML, with no page slower than 1 second. Profile the slowest components first. Slow queries and heavy Sling Models are the usual suspects.
Extra levers on AEM 6.5
If you run 6.5 yourself or on Adobe Managed Services, you can go deeper into the repository. Adobe's AEM 6.x tuning tips begin with load tests on both author and publish, using traffic that mirrors production, then a stress test before peaks. From there:
- Create custom Oak indexes for frequently searched properties, restricted with
includedPaths. The Explain Query tool in the Operations Dashboard shows which index a query uses and lists slow and popular queries. - Treat node-traversal warnings in the log as bugs. Adobe's query guide says they come from unindexed queries.
- Cap runaway queries. Adobe's examples set
queryLimitInMemoryto 500,000 andqueryLimitReadsto 100,000. - Set
queue.maxparallelfor Sling jobs to about 50% of CPU cores, for example 4 on an 8-core server. - Use transient workflows for high-volume asset ingestion that doesn't need workflow history.
Leave JVM and OS tuning for last. Adobe's performance guidelines say it rarely produces large gains.
Stay current on service packs, too. AEM 6.5 LTS has been available since March 2025, and its release notes list Service Pack 3 on August 20, 2026, with Java 17 and Java 21 support. If you're weighing 6.5 LTS against Cloud Service, our breakdown of the latest AEM version covers what changed.
Step 4: Plan phased rendering in three passes
Once the server half is healthy, whatever delay remains is usually about ordering. The chat widget arrives before the headline. Six clientlib files load before anything a person can read.
Phased rendering fixes that by loading what the visitor sees first and deferring everything else. Adobe's Edge Delivery Services performance guide formalizes it as E-L-D.
Eager covers everything needed to paint the LCP element, usually the hero. Adobe's guidance is to keep this payload below 100 KB, which usually gets LCP under 1,560 ms, a 100 score in PageSpeed Insights. It also says not to connect to a second origin before LCP, because the extra connection delays it.
Lazy is the rest of the page's sections, their JavaScript and CSS, and the remaining images with loading="lazy". Delayed holds marketing tags, consent tools, extended analytics and chat, and Adobe says it shouldn't start until at least 3 seconds after LCP.
Adobe enforces this strictly on its own platform. Edge Delivery projects start from a boilerplate that scores 100 on Lighthouse for mobile and desktop, and a GitHub bot fails any pull request that drops below 100. Nobody gets to slip a tag manager into the eager phase.
On a classic HTL and Dispatcher build, the phases map like this:
| Phase | What belongs there | How to do it in AEM Sites |
|---|---|---|
| Eager | Header markup, hero image, critical CSS, the hero component's JS (if any) | Server-rendered HTL; hero image with lazy loading disabled; small critical CSS clientlib in the head |
| Lazy | Below-the-fold components, carousels, forms, remaining images | Clientlibs loaded with defer; Core Components images with default lazy loading |
| Delayed | Tag manager, chat, heatmaps, A/B testing scripts that don't change the first view | Load after consent and after the page settles; review each script's blocking time |
The difficult part isn't technical. It's agreeing which scripts may load in the eager phase. Write that list down, and make every addition a reviewed change.
Step 5: Apply AEM clientlibs best practices, split by phase
Clientlibs are where most AEM sites lose their load order. The usual pattern is one category that loads on every template, embeds every other clientlib, and holds up the head of each page.
A client library is a repository folder of type cq:ClientLibraryFolder. It holds CSS and JavaScript source plus a css.txt or js.txt that lists what to merge, and pages include it by category name. Adobe's clientlibs documentation and the Core Components guide add up to six rules worth enforcing in code review:
- Keep clientlibs under
/appswithallowProxyset to true. Adobe requires/appsto isolate code from content and configuration. AEM serves the files through the/etc.clientlibs/proxy, and the folder's ACLs still apply. - Combine code with
embed, notdependencies. Adobe's goal is fewer HTTP requests on page load, and it callsdependenciesgenerally unneeded. - Don't commit pre-minified files. Adobe says not to place a minified library in a client library, because AEM's own minifier does that job.
- Load scripts with
deferorasync. The Core ComponentsClientLibrariesmodel acceptsasync,defer,crossoriginandonloadfor scripts, andmediafor stylesheets. - Split by phase, not by team. One small critical clientlib for the CSS the head needs, one deferred library for components below the fold, and third-party scripts in neither.
- Inline only what's tiny. The model offers
cssInlineandjsInline, but you write the wrapping tag yourself. Inlining a 200 KB bundle throws away the long-cache headers.
A deferred include looks like this:
<sly data-sly-use.clientlibs="${'com.adobe.cq.wcm.core.components.models.ClientLibraries' @ categories='mysite.lazy', defer=true}">
${clientlibs.jsIncludes @ context="unsafe"}
</sly>
To see what's really inside a category, append ?debugClientLibs=true to the page URL. AEM then lists the embedded source files one by one.
Step 6: Fix the hero image
The Core Components Image component (v3, the current version) lazy loads by default. That's right for most images and wrong for the hero, which is usually the LCP element.
web.dev's lazy-loading guidance explains the problem: the browser can't fetch a lazy image until it knows where the image sits on the page. So switch lazy loading off for the hero only. The "Disable lazy loading" option lives in the Image component's design dialog, which means a page policy on your editable template. Give the hero its own Image policy, or you'll switch lazy loading off for every image on the site.
While you're in the component, three more checks:
- Configure v3's responsive widths to match your real breakpoints, so the browser loads the most appropriate source.
- On Cloud Service, turn on web-optimized delivery. Adobe says it serves WebP and cuts image sizes by about 25% on average. On 6.5, the component can deliver Dynamic Media assets instead.
- Look for two heroes. If a page carries separate desktop and mobile hero images, Adobe's E-L-D guide says to remove the unneeded one so the wrong image doesn't load first.
Then confirm in the browser's network panel that exactly one hero image downloads, at the width you expect.
Step 7: Re-measure, then book the next tune-up
Go back to the step 1 data by template and compare it with your baseline. Real-user numbers trail deployments, so give them a few weeks before you draw conclusions.
Adobe recommends planning about 10% of project effort for performance, and a tune-up every 6–12 months after launch. Performance decays as tags, components and campaigns pile up. A recurring slot keeps it from turning into a rescue project.
When our AEM services team picks up a slow site, it starts with steps 1 and 2. That means real-user data by template, then the URLs that miss the cache. To talk through yours, send us your slowest template and our Adobe team can look at where it's stuck.
Troubleshooting: the score still won't move
Phased rendering fixes ordering problems. It can't fix capacity or architecture, so if steps 4 to 6 changed little, look for one of these.
Every page is personalized and slow to render. If pages take 2 seconds on publish and can't be cached, front-end ordering won't hide it. Rethink what truly has to be personalized before touching the front end again.
Marketing needs 12 tags to fire before the hero. Then the score won't move, and that's a governance decision rather than an engineering one.
Someone proposes a SPA Editor rebuild. Adobe deprecated the SPA Editor with Cloud Service release 2025.01. It's still supported for existing sites, but Adobe recommends the Universal Editor for new work. Don't start a SPA Editor rewrite to fix performance.
The good numbers come from staging. A Lighthouse 100 on a staging page with placeholder images says little about a campaign page with three autoplay videos.
FAQ
Does AEM performance affect SEO?
Yes, though indirectly. Google's Search Central documentation says good Core Web Vitals align with what its "core ranking systems seek to reward," and it recommends achieving them for success with Search. Speed won't make up for weak content, but a slow AEM site gives away an advantage it already paid for.
Is AEM performance tuning different on Cloud Service and 6.5?
The order of the work is the same, but the levers differ. On Cloud Service, Adobe manages the CDN, and you get Experience Audit, Operational Telemetry and web-optimized image delivery. On 6.5, you own the repository and the JVM, so Oak indexes, query limits and job queues become part of the job.
Do I need Edge Delivery Services to use phased rendering?
No. E-L-D is Adobe's name for the model on Edge Delivery Services, but the same three phases work on any HTL and Dispatcher build. You get there with a small critical clientlib, deferred scripts, lazy-loaded images below the fold and tags that load after consent.

