You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The table of contents loads after the main content, causing a flash. Additionally, when re-clicking on an already opened article, the table of content flashes again. Occasionally, a global flash occurs, giving the impression that all content is reloading. These issues are demonstrated in the attached video.
CleanShot.2024-05-21.at.12.06.32.mp4
Desired Behavior
Flashes should be eliminated to ensure smooth transitions and loading of content on the page.
The text was updated successfully, but these errors were encountered:
Disclaimer: This comment was automatically generated with AI. It can give some useful hints as to where to look for, but sometimes it can also give very inaccurate answers so takes this with a pinch of salt :).
To address the flashes on the user-guide page transitions, follow these steps:
UserGuideSidebar.tsx: Ensure the sidebar is preloaded and does not re-render unnecessarily.
UserGuideTableContents.tsx: Preload the table of contents along with the main content. Use React's useEffect to fetch and set the table of contents state before rendering the main content.
UserGuideContent.tsx: Optimize the content loading to prevent re-fetching data on re-clicking the same article. Implement caching mechanisms if necessary.
page.tsx: Ensure that the global layout and styles are consistent and do not cause reflows or repaints. Use React's Suspense and lazy for code-splitting and loading components efficiently.
Example for preloading table of contents in UserGuideTableContents.tsx:
- Fixes#5504
- Fixes#5503
- Return 404 when the page does not exist
- Modified the footer in order to align it properly
- Removed "noticed something to change" in each table of content
- Fixed the URLs of the edit module
- Added the edit module to Developers
- Fixed header style on the REST API page.
- Edited the README to point to Developers
- Fixed selected state when clicking on sidebar elements
---------
Co-authored-by: Félix Malfait <felix.malfait@gmail.com>
Current Behavior
There are three types of flashes occurring on the user-guide page transitions:
The table of contents loads after the main content, causing a flash. Additionally, when re-clicking on an already opened article, the table of content flashes again. Occasionally, a global flash occurs, giving the impression that all content is reloading. These issues are demonstrated in the attached video.
CleanShot.2024-05-21.at.12.06.32.mp4
Desired Behavior
Flashes should be eliminated to ensure smooth transitions and loading of content on the page.
The text was updated successfully, but these errors were encountered: