Add various optimisations #4

Merged
elvis merged 2 commits from refactor/optimisation into main 2026-04-16 14:57:08 +00:00
Owner
No description provided.
- Parallelize 9 card fetches using Promise.allSettled
- Add client-side caching for repeated card lookups
- Implement CSP headers and other security headers
- Add input validation for card IDs
- Use Promise.allSettled instead of retry loop
- Add image error fallback handling
- Auto-apply rarity glow to high-value cards (Legendary, Mythic, etc.)
- Improve error logging with stack traces
- Add window blur focus handling for modal
- Use native lazy loading for images
- Add cards.scryfall.io to img-src CSP
- Remove lazy loading from modal images
- Maintain security for other resources
elvis merged commit a1bbf46182 into main 2026-04-16 14:57:08 +00:00
elvis deleted branch refactor/optimisation 2026-04-16 14:57:08 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
elvis/mtg-binder!4
No description provided.