diff --git a/frontend/src/lib/components/ArticleCard.svelte b/frontend/src/lib/components/ArticleCard.svelte index ead2410..34f87bf 100644 --- a/frontend/src/lib/components/ArticleCard.svelte +++ b/frontend/src/lib/components/ArticleCard.svelte @@ -57,6 +57,11 @@ } shareOpen = false; } + // Kick off summary generation when the user signals intent to share, so it's + // cached by the time a recipient opens the link. + function warmSummary() { + fetch(`/api/summary/${article.id}`).catch(() => {}); + } async function copy(text, label) { try { await navigator.clipboard.writeText(text); @@ -127,7 +132,7 @@ {/if} - + {#if shareOpen}