Skip to content

MWPW-188278: Align head-loaded SSR flag with da-bacom pattern - #73

Open
JasonHowellSlavin wants to merge 1 commit into
stagefrom
ssr-flag
Open

MWPW-188278: Align head-loaded SSR flag with da-bacom pattern#73
JasonHowellSlavin wants to merge 1 commit into
stagefrom
ssr-flag

Conversation

@JasonHowellSlavin

Copy link
Copy Markdown
  • Adds a meta element that will have it's content modified at the end of the script tag. When content is served with server side rendering from tokowaka, it will prevent any duplication that would occur should the script be run again, like when spoofing headers in the browser.

Resolves: MWPW-188278

Test URLs:

Verification Steps

  • Go to the test page
  • Inspect the <head> element, notice no new links
  • Go to the network tab
  • Click on "More network conditions"
  • Scroll down and enable "Custom User Agent"
  • Enter: "ChatGPT-User"
  • Reload
  • Inspect the <head>
  • Notice links
  • Ensure there is no link duplication

Additional testing example with video:

https://wiki.corp.adobe.com/spaces/WP4/pages/3747684013/Adding+Hreflang+Link+Block+Functionality#AddingHreflangLinkBlockFunctionality-Testing

Implementation doc

https://wiki.corp.adobe.com/spaces/WP4/pages/3747684013/Adding+Hreflang+Link+Block+Functionality

Add static meta head-loaded=false, derive ssrFlag from content, gate JSON-LD when SSR, drop page-load-ok-milo check, set flagMeta content true at end of inline head script.

Made-with: Cursor
@aem-code-sync

aem-code-sync Bot commented Apr 2, 2026

Copy link
Copy Markdown

Hello, I'm the AEM Code Sync Bot and I will run some actions to deploy your branch and validate page speed.
In case there are problems, just click a checkbox below to rerun the respective action.

  • Re-run PSI checks
  • Re-sync branch
Commits

@aem-code-sync

aem-code-sync Bot commented Apr 2, 2026

Copy link
Copy Markdown
Page Scores Audits Google
📱 /blog/?martech=off PERFORMANCE A11Y SEO BEST PRACTICES SI FCP LCP TBT CLS PSI
🖥️ /blog/?martech=off PERFORMANCE A11Y SEO BEST PRACTICES SI FCP LCP TBT CLS PSI

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants