Skip to content

Defer wiki page load

Enrique Alcántara requested to merge 336792-defer-wiki-document-rendering into master

What does this MR do and why?

This MR replaces rendering a Wiki Page’s Content synchronously with deferring the rendering of the Content after the page loads.

Why is this change useful?

Rendering a very large Wiki page causes performance problems that yield 500 errors. This change detaches rendering the Wiki page content from loading the page itself. It allows the user to recover easily from the error or navigate to other parts of the application.

Screenshots or screen recordings

Before After When loading error happens
2022-03-09_09.01.53 2022-03-09_09.00.35 Screen_Shot_2022-03-09_at_9.04.37_AM

How to set up and validate locally

  • Enable the wiki_async_load feature flag.
  • Open a Wiki page in a project or a group.
  • The Wiki show view loads immediately and a skeleton loader appears indicating that the Content is loading

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #336792 (closed)

Edited by Enrique Alcántara

Merge request reports