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

Add "slow loading" banner if SITE_SLOW environment variable is set #701

Merged
merged 1 commit into from
Jan 27, 2025

Conversation

cstephen
Copy link
Contributor

@cstephen cstephen commented Jan 27, 2025

This PR adds an "experiencing slow load times" banner to the top of all pages if the SITE_SLOW environment variable is set.

To test:

  • Run export SITE_SLOW=true, run the app, and verify that the site-slow warning shows up where you expect.
  • Run unset SITE_SLOW, run the app, and confirm that everything still looks good without the banner.

@cstephen cstephen requested a review from BobTorgerson January 27, 2025 20:45
Copy link
Contributor

@BobTorgerson BobTorgerson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Setting the environment variable SITE_SLOW shows the banner as expected and the messaging is clear.

@BobTorgerson BobTorgerson merged commit 7f6cdcc into main Jan 27, 2025
1 check failed
@BobTorgerson BobTorgerson deleted the slow_load_warning branch January 27, 2025 21:28
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 this pull request may close these issues.

2 participants