Skip to content

Speed up study first load by deferring non-critical storage reads#1222

Open
JackWilb wants to merge 1 commit into
devfrom
speedup-first-load
Open

Speed up study first load by deferring non-critical storage reads#1222
JackWilb wants to merge 1 commit into
devfrom
speedup-first-load

Conversation

@JackWilb
Copy link
Copy Markdown
Contributor

@JackWilb JackWilb commented May 1, 2026

Does this PR close any open issues?

Closes #1221

Give a longer description of what this PR addresses and why it's needed

Defers participant IP lookup and completion status reads until after the study store is initialized.
Avoids redundant config writes when the active config hash is unchanged.
Reduces storage round trips during participant initialization by sharing modes/stage bootstrap data.
Uses Firebase Storage getBlob directly for storage object reads.
Limits eager study config fetching to the home route and adds coverage for the storage optimizations.

Provide pictures/videos of the behavior before and after these changes (optional)

Are there any additional TODOs before this PR is ready to go?

TODOs:

  • Update relevant documentation
  • ...

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 1, 2026

A preview of is uploaded and can be seen here:

https://revisit.dev/study/PR1222

Changes may take a few minutes to propagate.

@JackWilb JackWilb linked an issue May 1, 2026 that may be closed by this pull request
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.

Investigate Slow loading of studies

1 participant