Page MenuHomePhabricator

Avoid long wait when comparing the section contents
Closed, ResolvedPublic

Description

The step to compare the source section contents with the target article contents often results in long waiting periods.

The UI seems to be blocked both pieces of content are fully loaded. This ticket proposes to:

  • Showing the source section contents as soon as it loads
  • Keeping the button to translate active

This would give time for the target article to load in the background, and reduce the perceived waiting time. Further refinement by pre-loading or loading enough contents to fill the viewport can be considered too.

Event Timeline

Change 720923 had a related patch set uploaded (by Santhosh; author: Santhosh):

[mediawiki/extensions/ContentTranslation@master] SX: Use Dummy VE surface based section extraction only for source page

https://gerrit.wikimedia.org/r/720923

Change 720923 merged by jenkins-bot:

[mediawiki/extensions/ContentTranslation@master] SX: Use Dummy VE surface based section extraction only for source page

https://gerrit.wikimedia.org/r/720923

Change 728550 had a related patch set uploaded (by Nik Gkountas; author: Nik Gkountas):

[mediawiki/extensions/ContentTranslation@master] SX page contents: resolve references asynchronously

https://gerrit.wikimedia.org/r/728550

Change 729973 had a related patch set uploaded (by Santhosh; author: Santhosh):

[mediawiki/extensions/ContentTranslation@master] CX3 Build 0.1.0+20211011

https://gerrit.wikimedia.org/r/729973

Change 728550 merged by jenkins-bot:

[mediawiki/extensions/ContentTranslation@master] SX page contents: resolve references asynchronously

https://gerrit.wikimedia.org/r/728550

Change 729973 merged by jenkins-bot:

[mediawiki/extensions/ContentTranslation@master] CX3 Build 0.1.0+20211011

https://gerrit.wikimedia.org/r/729973

Hint for QA: there is no way to really measure the time difference for the waiting times before and after the patch, in production. However, the difference is feelable just by comparing the screencast to the actual performance in production, currently.