Edge Delivery Services how-tos · updated

How to keep a Lighthouse score of 100 on Edge Delivery Services

Edge Delivery Services projects keep a 100 Lighthouse score by loading in three phases. Eager loads only what the largest contentful paint needs. Lazy loads the rest of your own code. Delayed loads third-party scripts such as tags and chat well after LCP. aem.live suggests keeping everything before LCP under about 100 KB and starting the delayed phase at least three seconds after LCP.

The three phases

PhaseWhat loadsRule of thumb
Eager (E)Decoration, first section, LCP image, its block JS/CSSAggregate payload before LCP under ~100 KB; no second origin before LCP
Lazy (L)Other sections and blocks, lazy images, first-party librariesMostly same-origin code you control
Delayed (D)Martech, consent, analytics extensions, chatStart at least 3 s after LCP; boilerplate gates it behind a consent check

Common LCP problems

  • The LCP image is loaded through a lookup (a fragment or JSON) so the loader guesses the wrong candidate; wait for the first block to finish before choosing it.
  • Separate desktop and mobile hero images both in the DOM; remove the one not needed so it isn't downloaded first.
  • Fonts or third-party scripts from another origin before LCP; each new connection costs time on mobile.
  • Martech added to head.html, which aem.live strongly advises against.

Keep it at 100 with PR checks

aem.live notes it's hard to raise a low score but easy to keep 100 if you test continuously. When you open a pull request, the AEM GitHub bot runs PageSpeed Insights (mobile) on the test URLs in the PR description and fails the PR if the score drops below 100, with a small buffer for variance.

How to do it

  1. Start from the boilerplate, which scores 100 on PageSpeed Insights.
  2. Keep the first section small; check the LCP element in PageSpeed Insights.
  3. Move every third-party script into the delayed phase.
  4. Put test URLs in every PR description so the bot checks them.
  5. Watch field data (Core Web Vitals) after release.

Related pages on this site

Questions

Why does my EDS site score lower in the field than in Lighthouse?

Field data covers real networks and devices, so it often differs from lab tests; use both.

Can I add Google Tag Manager to head.html?

aem.live strongly advises against adding marketing scripts to head.html; load them in the delayed phase.

Does the boilerplate still delay third-party scripts by 3 seconds?

aem.live says loadDelayed() no longer enforces a hard-coded timer; add an explicit delay if you need one.

Sources

Facts about Adobe's platform are from the linked Adobe pages, checked 10 Nov 2026. Explanations and examples are ours unless marked as Adobe's.

Scan, Convert, Verify, Install

How Surge Migrate helps with a move to Edge Delivery Services

Surge Migrate moves a website from any CMS to any CMS, and Edge Delivery Services is one of the systems it writes. Pages are converted automatically, and you check the result before you install anything.

  1. 1

    Scan

    Names the system behind your site, counts pages and templates, lists the blocks to build and the work no tool does, and gives an effort range with its working.

    Scan a site →
  2. 2

    Convert

    Each page becomes an Edge Delivery document, an AEM Core Component page and import files for 7 other systems. 10 pages free; 500 or 2,000 pages in one paid run.

    Convert your pages →
  3. 3

    Verify

    A download is offered only when its own format check passes. The report lists every field not found and every component kept as plain content. Compare old and new pages side by side.

    Parity check →
  4. 4

    Install

    You import with the target system's own tool, on your own environment. Each download's README gives the command. Your system changes only when you run it.

    How each import was tested →

Import kit and one document per page, in the format of Adobe's AEM Importer. The free EDS block mapper shows which of your components map to EDS blocks. For AEM 6.5 code, the free readiness scan lists Cloud Service blockers in your browser. Nothing is uploaded.