Skip to content

Lazy-load Light and Sun analysis hooks#1332

Merged
elkimek merged 5 commits into
mainfrom
agent/lazy-load-light-sun
Jul 23, 2026
Merged

Lazy-load Light and Sun analysis hooks#1332
elkimek merged 5 commits into
mainfrom
agent/lazy-load-light-sun

Conversation

@elkimek

@elkimek elkimek commented Jul 23, 2026

Copy link
Copy Markdown
Owner

Summary

  • keep Sun context available during startup while deferring the Light/Sun analysis and feature-hook group behind one cached loader
  • initialize the lazy group before Light routes, optional interactive Light dashboard widgets, assessment modals, session analysis, and direct session-modal access
  • make route completion awaitable, preserve sync/async channel navigation, and avoid rendering hidden dashboard widgets
  • regenerate the module map, document the boundary, bump the app version, and add loader/route/widget browser coverage

Cold-load result

Fresh mobile returning-user load with cache and service workers disabled:

  • requests: 471 → 455 (-16)
  • compressed transfer: 2,004,946 → 1,953,718 bytes (-51,228)
  • decoded: 6,204,797 → 6,075,152 bytes (-129,645)

The committed ceilings are ratcheted to 461 requests, 1,987,000 transfer bytes, and 6,174,000 decoded bytes.

Validation

  • ./run-tests.sh
    • 131 module verification checks
    • 486 Vitest tests
    • 18 dev-server origin checks
    • 382 Chromium tests
  • architecture check: 464 modules, 0 cyclic
  • cold-load reference reproduced exactly at 455 / 1,953,718 / 6,075,152

@elkimek elkimek closed this Jul 23, 2026
@elkimek elkimek reopened this Jul 23, 2026
@elkimek
elkimek merged commit c4ebbeb into main Jul 23, 2026
3 checks passed
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.

1 participant