Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flash-of-front-page before loading global page component by slug #219

Open
cstephen opened this issue Feb 6, 2025 · 0 comments · May be fixed by #226
Open

Flash-of-front-page before loading global page component by slug #219

cstephen opened this issue Feb 6, 2025 · 0 comments · May be fixed by #226
Assignees

Comments

@cstephen
Copy link
Contributor

cstephen commented Feb 6, 2025

This is an issue that affects the webapp in production while built & hosted from an S3 bucket, but does not affect the webapp locally (at least not while running via npm run dev).

If you visit any part of the webapp that loads a page component based on the slug name (any item in components/global basically, including all data x-ray items and data stories), there's a brief moment where the front page of the webapp is displayed before the component is loaded. It would be better if the webapp showed the "Loading ARDAC" screen instead of the front page while the global component is loading, and never shows the front page at all.

This behavior is especially bad for any ARDAC item that loads the Gimme component with the extent property set and needs to determine if communities fall within a GeoJSON extent before loading. With the additional international communities added for the pan-Arctic CMIP6 dataset, this process takes longer than it used to, and the flash-of-front-page is conspicuously long. See this page for example: https://arcticdatascience.org/item/permafrost-talik If users saw the "Loading ARDAC" screen instead of the front page, this wouldn't be as strange.

@cstephen cstephen added this to the Post-launch cleanup milestone Feb 7, 2025
@cstephen cstephen self-assigned this Feb 12, 2025
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 a pull request may close this issue.

1 participant