전송 최적화: nginx gzip·이미지 lazy-load·캐시 연장
- nginx 텍스트 자산 gzip 압축 추가로 css/js/json/HTML 전송량 절감 - cardList 카드 이미지 lazy-load로 시리즈 진입 시 즉시 다운로드 방지 - 정적 이미지 캐시 7일→30일 연장 - 미사용 style/deck-history.css 삭제 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -427,7 +427,7 @@
|
||||
|
||||
cardContainer.innerHTML = `
|
||||
<div class="card_image cursor-pointer relative w-full mb-2 rounded overflow-hidden bg-slate-50" style="aspect-ratio: 2/3;">
|
||||
<img src="${imgSrc}" class="absolute inset-0 w-full h-full object-contain transition-transform"
|
||||
<img src="${imgSrc}" loading="lazy" decoding="async" class="absolute inset-0 w-full h-full object-contain transition-transform"
|
||||
onerror="this.src='${CARD_IMAGE_FALLBACK_SRC}'; this.onerror=null;">
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user