la-rose/scripts
semianiakavy 4ab8249c6a fix: cache the bouquet gallery so the flower field stops re-downloading
The dev server stamped every static response `no-store`, images included.
The field paints 40 bouquets x up to 3 shots in three identical sets, and a
client-side render rebuilds the whole view through `innerHTML` — so every
`<img>` is a new element and, with nothing cacheable, the same ~120 photos
were fetched again on each render. That is what made the slides on
/variant-b look like they kept reloading (and why a hovered cell could fade
in from blank).

- dev-server: per-kind cache policy + weak ETag. `index.html` stays
  `no-store`; `app.js` / `styles.css` (already `?v=`-busted) revalidate and
  answer 304; the committed gallery is kept for a week.
- app.js: keep one decoded image per field URL in `ffImageCache`, warmed in
  small batches when /variant-b renders, so a rebuild of the view reuses the
  bitmap instead of flashing.
- app.js: the copy of each row that is on screen at t=0 loads eagerly (first
  set for left rows, middle set for right rows); the copies drifting in later
  stay lazy.
- index.html: asset buster ?v=22 -> ?v=23.
2026-10-05 19:28:58 +00:00
..
dev-server.ts fix: cache the bouquet gallery so the flower field stops re-downloading 2026-10-05 19:28:58 +00:00
fetch-favicon.ts feat: real /favicon.ico and an un-stretched brand lockup 2026-10-05 17:53:49 +00:00
fetch-images.ts feat(seed): fetch full product gallery originals from la-rose.by 2026-10-05 15:27:01 +00:00
fetch-logo.ts feat: use the source wordmark as the store logo 2026-10-05 17:39:30 +00:00
generate-seed-sql.ts feat: rebuild info pages from source content in the new design 2026-10-05 18:40:20 +00:00
migrate.ts feat(db): schema, migrations and idempotent seed for the catalog 2026-10-04 19:57:52 +00:00
seed.ts feat(db): schema, migrations and idempotent seed for the catalog 2026-10-04 19:57:52 +00:00
verify-images.ts chore(scripts): generate + verify gallery seed artifacts; ci runs tsc/tsx directly (#64) 2026-10-05 15:34:42 +00:00
verify.ts chore(scripts): generate + verify gallery seed artifacts; ci runs tsc/tsx directly (#64) 2026-10-05 15:34:42 +00:00