Skip to content

Conversation

@slifty
Copy link
Contributor

@slifty slifty commented Jan 13, 2026

This PR consolidates a bunch of repeated scripts into a single file.

Ultimately I think we really want to change the way our index is built such that there is a single index, and anything environment specific is inserted as part of the build step.

Resolves #885

Right now each our environments has a distinct index.html file which
injects env-specific tokens.

This also has a lot of embedded scripts in the file itself.  The net
result is a ton of redundant lines of code.

This pattern is questionable overall, but a short term improvement is to
at least put the common javascript into a single file and DRY out the
repetition.  Eventually we should probably have a single file which is
decorated in various environments with relevant tokens as part of
a build step.

Issue #885 Reduce size of index.html
@codecov
Copy link

codecov bot commented Jan 13, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 47.14%. Comparing base (20cebec) to head (9f1e75e).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #886   +/-   ##
=======================================
  Coverage   47.13%   47.14%           
=======================================
  Files         372      372           
  Lines       11495    11495           
  Branches     1913     1914    +1     
=======================================
+ Hits         5418     5419    +1     
- Misses       5889     5893    +4     
+ Partials      188      183    -5     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@slifty
Copy link
Contributor Author

slifty commented Jan 13, 2026

Closing this out in favor of #887

@slifty slifty closed this Jan 13, 2026
@slifty slifty deleted the 885-reduce-index.html branch January 13, 2026 20:55
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.

Reduce size of index.html

2 participants