Sharper first view and smoke loader sign-off

The loader now measures throughput from whole tile batches, not just the
two probe tiles, and after a session settles inside its deadline it tops
up in the background: the needed level if the budget cut it short, then
one level above it on capable devices with a fast connection (drawn
downscaled), within time and memory caps and never under Save-Data.

The chop in the album end card and the page footer is replaced by the
LUCIO loader in smoke from lucioIP, falling back to the SVG loader
without WebGL. sync-brand.sh now copies lucio-loaders.js and defaults to
../lucioIP.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
Guoliang ChenandClaude Opus 5.5 committed 2026-11-07 01:47:44 -08:00
1 parent e48a1eacf4
commit 4cdbd66fcf
10 files changed
+990 -41

No files matched your search

+4 -3
View File
@@ -3,10 +3,10 @@ set -euo pipefail
scripts_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
repo_dir="$(dirname "$scripts_dir")"
brand_dir="${LUCIO_IP_DIR:-$repo_dir/../LUCIO_ip}"
brand_dir="${LUCIO_IP_DIR:-$repo_dir/../lucioIP}"
out_dir="$repo_dir/web/brand"
for required in tokens/tokens.css motion/lucio-morph.js logo/favicon.svg logo/lucio-chop-chen.svg; do
for required in tokens/tokens.css motion/lucio-morph.js motion/lucio-loaders.js logo/favicon.svg logo/lucio-chop-chen.svg; do
if [ ! -f "$brand_dir/$required" ]; then
echo "sync-brand: $brand_dir/$required not found (set LUCIO_IP_DIR)" >&2
exit 1
@@ -33,7 +33,8 @@ strip_svg() {
} > "$out_dir/tokens.css"
strip_js < "$brand_dir/motion/lucio-morph.js" > "$out_dir/lucio-morph.js"
strip_js < "$brand_dir/motion/lucio-loaders.js" > "$out_dir/lucio-loaders.js"
strip_svg < "$brand_dir/logo/favicon.svg" > "$out_dir/favicon.svg"
strip_svg < "$brand_dir/logo/lucio-chop-chen.svg" > "$out_dir/lucio-chop-chen.svg"
echo "sync-brand: copied tokens.css, lucio-morph.js, favicon.svg, lucio-chop-chen.svg from $brand_dir into $out_dir"
echo "sync-brand: copied tokens.css, lucio-morph.js, lucio-loaders.js, favicon.svg, lucio-chop-chen.svg from $brand_dir into $out_dir"