Skip to content

feat: delay versions loading#692

Merged
kptdobe merged 2 commits intomainfrom
versions
Jan 12, 2026
Merged

feat: delay versions loading#692
kptdobe merged 2 commits intomainfrom
versions

Conversation

@kptdobe
Copy link
Copy Markdown
Contributor

@kptdobe kptdobe commented Dec 11, 2025

Versions are loaded after document is opened. If no one clicks on the Version History button, this was useless. Number of clicks on the button is very low.

If a document has more than 500+ versions (including empty version files for edition tracking), /versionlist fires more than 500 requests (get object, 500x get versionsource...)! It is pretty common that a document has more than 100 or 200 versions, especially documents with active authors...

Delaying the version loading will save thousands of requests!!

I have added a nice "Loading..." experience.

Before: https://main--da-live--adobe.aem.live/edit#/auniverseaway/oh-demo/index
After: https://versions--da-live--adobe.aem.live/edit#/auniverseaway/oh-demo/index

@aem-code-sync
Copy link
Copy Markdown

aem-code-sync Bot commented Dec 11, 2025

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
Copy link
Copy Markdown

aem-code-sync Bot commented Dec 11, 2025

Page Scores Audits Google
📱 /edit PERFORMANCE A11Y SEO BEST PRACTICES SI FCP LCP TBT CLS PSI
🖥️ /edit PERFORMANCE A11Y SEO BEST PRACTICES SI FCP LCP TBT CLS PSI

Copy link
Copy Markdown
Member

@auniverseaway auniverseaway left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This works.

The likely better solution would be to not render the da-versions web component if its not the currently requested pane. Then you can avoid touching da-versions altogether and passing props. Pretty sure this was how it was done before I introduced this regression.

@kptdobe kptdobe merged commit cf0c13c into main Jan 12, 2026
3 of 5 checks passed
@kptdobe kptdobe deleted the versions branch January 12, 2026 14:02
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.

2 participants