Skip to content

Faster dashboard load: deferred scripts, fewer serial Supabase rounds, lighter first paint - #855

Merged
manzilsystem merged 1 commit into
mainfrom
perf/dashboard-load
Dec 1, 2026
Merged

manzilsystem merged 1 commit into
mainfrom
perf/dashboard-load

Conversation

@manzilsystem

Copy link
Copy Markdown
Owner

من فريق Manzil load time (patch dashboard-load-e8d5fad7).

تطبيق على main الحالي 29a71be. تعارض واحد في src/index.template.html: main فيه سطر script جديد (reports-owner-statements.js من #846) مش موجود في الباتش، والباتش بيضيف defer لكل السكربتات + subscription-rates.js. الحل: قايمة سكربتات main زي ما هي وعليها defer لكل واحد، وsubscription-rates.js مضاف بعد js/supabase.js.

المولّدات أعيد بناؤها: manzil-3fc63d56d5. البوابات: check:index نضيف، check:conflicts نضيف، typecheck نضيف، npm test 1579/1579.

…, lighter first paint

- index: add defer to all app scripts (parallel download, same order); subscription-rates.js is now a static deferred script
- loadState: managers fetch profile, building (with reminder columns) and all data in one parallel round after building_members; owners keep profile-first gate; reminder columns fall back on PGRST204/42703
- subscription-rates.js: drop the loadState wrapper that refetched rates and history already loaded
- assets: manzil-brand.webp (512px, 60KB) replaces the 290KB PNG in markup; preload Cairo 400/700; webp added to SW shell
- build-index: only telemetry.js keeps the shared release stamp
- tests and docs updated

(cherry picked from commit c8c0a85)
(cherry picked from commit 9cfd51b)
@manzilsystem
manzilsystem merged commit 611cf2d into main Dec 1, 2026
13 checks passed
@manzilsystem
manzilsystem deleted the perf/dashboard-load branch December 1, 2026 19:43
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