Démarrage plus léger : écrans rares chargés à la demande

- Stats, Réglages, Admin, Roulette, Calendrier, fiche personne, saisie manuelle et écrans sociaux
  (profil, recherche de membres, abonnés, avis, notifications, aperçu) chargés à la demande,
  puis préchargés dès que l'app est au repos : ils s'ouvrent ensuite sans attente
- Carte de partage chargée au moment du partage
- Fichier principal : 784 Ko → 620 Ko
- Noms de fichiers exportés : bobinoo-… au lieu de kino-…

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YVo1qxKoBQCaMd7Ue8PGbe
This commit is contained in:
Claude committed 2026-11-27 17:40:02 +00:00
1 parent 81c6a447d9
commit 71b1e91947
6 files changed
+95 -44

No files matched your search

+3 -2
View File
@@ -13,7 +13,6 @@ import { episodeCap, seasonPosition } from '../../lib/franchise'
import { episodesPatch } from '../../lib/progress'
import { useScrollLock } from '../../lib/scrollLock'
import { backdropSrcSet, tmdbSized } from '../../lib/tmdbImage'
import { renderItemCard, slug } from '../../lib/shareCard'
import { cx, formatDate, formatDuration, formatRating, todayISO } from '../../lib/utils'
import { GuestError, useMedia } from '../../store'
import { allTags, cleanTag } from '../../lib/bulk'
@@ -295,8 +294,10 @@ export default function TitleSheet({ item: initial, seed, onClose, onGoToSetting
if (settings.tmdbKey && item.externalId?.startsWith('tmdb:') && navigator.onLine) {
credits = await getTmdbCredits(item.externalId, settings.tmdbKey).catch(() => undefined)
}
// Carte de partage : module chargé seulement quand on partage
const { renderItemCard, slug } = await import('../../lib/shareCard')
const blob = await renderItemCard(item, credits)
setPreview({ blob, filename: `kino-${slug(item.title)}.png` })
setPreview({ blob, filename: `bobinoo-${slug(item.title)}.png` })
} catch {
setToast(t('share.err.create'))
} finally {