Defer wiki page load
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 |
---|---|---|
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.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #336792 (closed)
Edited by Enrique Alcántara