google-labs-jules[bot] and PR0M3TH3AN
df62585106
perf: enable lazy loading for avatars and thumbnails
...
Added `loading="lazy"` and `decoding="async"` attributes to dynamically created `<img>` elements in:
- `js/historyView.js` (avatars)
- `js/ui/subscriptionHistoryController.js` (channel icons)
- `js/searchView.js` (added `decoding="async"`)
- `js/ui/profileModal/ProfileDirectMessageRenderer.js` (attachment previews, avatars)
- `js/ui/profileModalController.js` (attachment previews, saved profile avatars)
This reduces initial page load impact and bandwidth usage by deferring off-screen image loading.
Co-authored-by: PR0M3TH3AN <[email protected] >
2026-02-12 16:56:06 +00:00
google-labs-jules[bot] and PR0M3TH3AN
2aae4094e7
[constants] refactor duplicate numeric constants
...
- Add `UI_FEEDBACK_DELAY_MS`, `DEBOUNCE_DELAY_MS`, and `NETWORK_RETRY_DELAY_MS` to `js/constants.js`.
- Replace magic numbers (5000, 2000, 1500) with semantic constants in:
- `js/ui/notificationController.js`
- `js/ui/profileModal/ProfileDirectMessageActions.js`
- `js/ui/urlHealthController.js`
- `js/app/uiCoordinator.js`
- `js/ui/components/VideoModal.js`
- `js/ui/components/UploadModal.js`
- `js/services/dmNostrService.js`
- `js/services/hashtagPreferencesService.js`
- `js/app/feedCoordinator.js`
- `js/services/moderationService.js`
Co-authored-by: PR0M3TH3AN <[email protected] >
2026-02-12 03:43:03 +00:00
google-labs-jules[bot] and PR0M3TH3AN
7300977a6d
[decompose] extract DM and Relay controllers from ProfileModalController
...
Extracted ProfileDirectMessageController (split into Controller, Actions, Renderer, Helper) and ProfileRelayController from ProfileModalController to reduce file size and improve maintainability.
ProfileModalController.js size reduced from ~12000 lines to ~8750 lines.
Updated unit tests to reflect the new structure.
Co-authored-by: PR0M3TH3AN <[email protected] >
2026-02-11 21:15:06 +00:00
google-labs-jules[bot] and PR0M3TH3AN
48d33f45eb
[decompose] Extract Wallet and Storage controllers from ProfileModalController
...
Co-authored-by: PR0M3TH3AN <[email protected] >
2026-02-11 03:30:40 +00:00