Skip to content

💃 Free CC0 mannequin pose reference library for AI image tools (Nano Banana, ChatGPT, ComfyUI, Midjourney) — 250+ poses × 5 angles in line art, names in ja/zh/en/ko

perf(web): self-hosted fonts, on-screen-first loading, in-place re-renders

wquguru2a903bfc2248
diff --git a/AGENTS.md b/AGENTS.md
index 7432e406..8260024b 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -72,7 +72,8 @@ images/{clay,depth,normal}/ maps of passed line views (catalog `maps`), same th
images/costume/ costume views: grey/{w300,w600,w900}/ on #D9D9D9 and alpha/w900/ transparent (D-10),
costume_<ID>_<view>.webp; QC in data/costume-qc.json from data/costume-qc-input/
web/ gallery source: index.html template, app.js, app.css, i18n.js, common.js (share sheet, copy,
- language links), favicon.svg, changelog.yaml (reader-facing changelog, four languages)
+ language links), favicon.svg, changelog.yaml (reader-facing changelog, four languages), fonts/ (self-hosted
+ Latin subsets of Inter Tight and JetBrains Mono with their OFL files; CJK uses system fonts)
site/ build output of tools/build_site.py (git-ignored; deploy this): home, pose pages and changelog
per language (zh at the root, ja/ en/ ko/), og/ share cards, sitemap, robots, 404, manifest,
_headers (Cloudflare cache rules)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 58e891a9..56b931e6 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -8,6 +8,12 @@ the catalog schema.
## [Unreleased]
### Changed
+- Performance: fonts are self-hosted Latin subsets (Inter Tight, JetBrains Mono; 65 KB, OFL files in `web/fonts/`)
+ and CJK text uses system fonts, replacing Google Fonts (28 requests, 1.6 MB, often unreachable from mainland China).
+ The lightbox fetches what is on screen first and preloads only afterwards, two at a time, cancelled on every step;
+ overview tiles pick 300 or 600 px by screen. Re-renders keep existing nodes and swap decoded images, so changing angle
+ no longer flashes; failed images offer a retry. Marquee tiles past the first eight load lazily (25 images on first
+ load instead of 53); grid cards use content-visibility.
- Phones: the overview's button is "Save this angle" and hands every format of the angle (up to five images) to
the share sheet at once ("Save 5 Images" on iOS); an enlarged format saves just that image ("Save clay"). Browsers
that cannot share files, such as WeChat, show "How to save" with a long-press hint. Desktop is unchanged.
diff --git a/docs/DESIGN.md b/docs/DESIGN.md
index 6cb48c91..155a5d23 100644
--- a/docs/DESIGN.md
+++ b/docs/DESIGN.md
@@ -20,6 +20,14 @@
3. 全部姿势:吸顶筛选条(分类胶囊带色点和数量、机位、线稿/实拍、按姿势/逐张、计数),下面是网格。
4. 页脚:只写一句「全部素材由 Shisei 自制。」加链接,不提其他项目。
+## 性能(2026-11-01)
+- 字体:只自托管 Inter Tight(可变字重)和 JetBrains Mono 500 的拉丁子集,共约 65 KB,`font-display: swap`,HTML 里预加载 Inter Tight;
+ 中文 / 日文 / 韩文按页面语言用系统字体(苹方、冬青黑体、雅黑;Hiragino Sans、游ゴシック;Apple SD Gothic Neo、Malgun Gothic)。
+ 之前从 Google Fonts 加载,首页 28 个请求、1.6 MB,且 fonts.googleapis.com 在中国大陆常连不上、会卡住首屏。
+- 首屏滚动方块:第一行前 8 张立即加载,其余(含无缝循环的复制段和手机上隐藏的第二行)`loading="lazy"`,滚到附近才取。
+- 网格卡片 `content-visibility: auto`:屏外的卡不排版、不绘制;卡片四周留 24 px 内边距(负外边距抵消),悬停阴影和焦点框不被裁掉,手机上不留。
+- 没做的:目录 JSON 仍内联在页面里(拆出去会让网格多等一个请求,gzip 后只有约 37 KB);AVIF 档位待试几张确认收益后再定。
+
## 交互
- 姿势卡:默认正面;悬停、聚焦或点按圆点切换本卡机位;顶栏选机位时全部卡片统一切换。
- 缺机位(2026-10-29 改):圆点变空心并禁用。主图位置不画虚线框,放一个图标(线稿铅笔、实拍相机)、一句短话和一个出口:
@@ -46,8 +54,10 @@
网格卡片和首屏滚动方块都打开总览(实拍模式下打开实拍);从滚动方块进来时,方块那一种格式的格子描黑边、名字加粗,不加文字标签。
手机总览隐藏左右箭头。手机灯箱高度是 100dvh:浏览器地址栏露出时会矮约 180 px,所以手机上标题上方只留「ID · 分类」,机位缩略条压到 44 px 高,
格式说明收进「详情」,让图在首次打开时就有足够高度(之前要滑一下、地址栏收起才正常)。
- 预加载:当前画面的图加载完后,低优先级预取下一步要用的图——总览预取其他四个机位的格子(w600),单张预取同格式的其他机位和这个机位的其他格式
- (w900),再加下一套的同一机位;省流量模式和 2G 不预取。换机位、换格式因此几乎没有等待。
+ 加载顺序(2026-11-01 改):眼前的图(总览格子、大图)高优先级先取;它们全部加载完(最多等 4 秒)才开始预取,预取排一条队、同时最多 2 个,
+ 换机位 / 格式 / 套时丢掉还没开始的。手机上队列最前面是保存按钮要用的文件,其后依次是:总览其他四个机位的格子(w300 / w600 由 srcset 按屏幕选)、
+ 单张时同格式的其他机位和这个机位的其他格式(w900)、下一套的同一机位。省流量模式和 2G 只取保存按钮的文件。
+ 换机位不再整段重写:总览、机位缩略条、格式排只改有变化的节点;换图时新图在后台解码完再替换,替换前旧图半透明,不出现空白闪烁;加载失败的图显示「重试」。
手机保存(2026-11-01):总览的按钮叫「保存这个机位」,一次把这个机位的全部格式(线稿、白模、深度、法线、实拍,有几张算几张)交给系统分享面板,
iOS 上是「存储 N 张图像」,一次进相册;文件在点之前就预取好(share() 必须在点击手势里调用),没取完时提示「正在准备」。放大单张时按钮是
「保存白模」这类,只存这一张。不能分享文件的浏览器(微信等)按钮叫「怎么保存?」,点了提示放大后长按保存。桌面不变:一次下载一个文件。
diff --git a/docs/LICENSING.md b/docs/LICENSING.md
index 355ecc6a..708c2e02 100644
--- a/docs/LICENSING.md
+++ b/docs/LICENSING.md
@@ -11,7 +11,7 @@
姿势目录沿用 ギア(@giaaibusi)的 ai-pose-gallery 公开目录(https://ai-pose-gallery.pages.dev/),zh / en / ko 名是它的译名;改名前 288 套的日文名和分类与原目录逐字相同,2026-10-29 中性化改名后仍有 231 个名称、191 个分类相同。这部分不是我们的,不能授权给别人,README 和 NOTICE 里写明出处,并声明与原作者无关联。没有征求原作者同意(人定);以后可以把名称全部用自己的话改写,去掉这层依赖。
-外部贡献:代码和文档按 Apache-2.0 §5 入站即出站;图片和数据按 CC0 提交,提交即表示同意放弃权利。不另签 CLA。画廊零运行时依赖。网页字体 Inter Tight、Noto Sans SC、JetBrains Mono(均为 SIL OFL 1.1)由 Google Fonts 加载,不进仓库、不随站点分发;以后改成自托管时要附 OFL.txt。
+外部贡献:代码和文档按 Apache-2.0 §5 入站即出站;图片和数据按 CC0 提交,提交即表示同意放弃权利。不另签 CLA。画廊零运行时依赖。网页字体(2026-11-01 起自托管):Inter Tight 和 JetBrains Mono 的拉丁子集放在 `web/fonts/`,随站点分发,同目录附各自的 OFL 1.1 全文(`OFL-InterTight.txt`、`OFL-JetBrainsMono.txt`);中日韩文字用读者系统自带的字体,不再加载 Noto Sans SC,也不再连 Google Fonts。
## 规则(硬性)
1. **不用外部图片。** 不下载、缓存、镜像、重新编码或描摹 ai-pose-gallery(ギア @giaaibusi)、它的各种镜像或其他姿势站的图片:原作条款禁止再分发图片数据,加工后的副本也算;镜像自带的开源许可证最多只覆盖它自己的代码。仓库和站点里不点名、不链接这些镜像(人定,不给再分发图片的站引流)。界面思路可以参考,代码和文案不抄。
diff --git a/tools/build_site.py b/tools/build_site.py
index 4e999aff..52c61bd6 100755
--- a/tools/build_site.py
+++ b/tools/build_site.py
@@ -203,6 +203,8 @@ def check_site(out, site):
# the same when a view is redrawn, so images get a week plus background revalidation rather than immutable.
HEADERS = """/assets/*
Cache-Control: public, max-age=31536000, immutable
+/fonts/*
+ Cache-Control: public, max-age=31536000, immutable
/images/*
Cache-Control: public, max-age=604800, stale-while-revalidate=86400
/og/*
@@ -338,6 +340,8 @@ def main() -> None:
for f in (ROOT / "web").iterdir():
if f.is_file() and f.name not in ("index.html", "changelog.yaml"):
shutil.copy2(f, out / f.name)
+ # Self-hosted Latin font subsets and their OFL licences (docs/LICENSING.md).
+ shutil.copytree(ROOT / "web/fonts", out / "fonts")
(out / "catalog.json").write_text(json.dumps(catalog, ensure_ascii=False, indent=1) + "\n")
(out / "stats.json").write_text(json.dumps(stats, ensure_ascii=False, indent=1) + "\n")
if args.link_images:
diff --git a/tools/site_pages.py b/tools/site_pages.py
index 8c992e60..b842a278 100644
--- a/tools/site_pages.py
+++ b/tools/site_pages.py
@@ -138,9 +138,7 @@ class Site:
<meta name="viewport" content="width=device-width,initial-scale=1,viewport-fit=cover">
{head}
<meta name="theme-color" content="#F5F2ED">
-<link rel="preconnect" href="https://fonts.googleapis.com">
-<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
-<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Inter+Tight:wght@500;600;700;800&family=Noto+Sans+SC:wght@400;500;700;900&family=JetBrains+Mono:wght@500&display=swap">
+<link rel="preload" href="{rel}fonts/inter-tight-latin.woff2" as="font" type="font/woff2" crossorigin>
<link rel="stylesheet" href="{rel}app.css?v={self.version}">
</head>
<body class="static {cls}">
diff --git a/web/app.css b/web/app.css
index 46f1f467..bc8d0639 100644
--- a/web/app.css
+++ b/web/app.css
@@ -1,3 +1,8 @@
+/* Self-hosted Latin subsets (2026-11-01): Google Fonts sent 1.6 MB in 28 requests (Noto Sans SC in slices) and is
+ often unreachable from mainland China, where its stylesheet held up the first render. Chinese, Japanese and Korean
+ text use the reader's system fonts. Paths are relative to the stamped stylesheet in assets/. */
+@font-face { font-family: 'Inter Tight'; font-style: normal; font-weight: 500 800; font-display: swap; src: url(../fonts/inter-tight-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
+@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/jetbrains-mono-500-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root {
--bg: #F5F2ED; --bg2: #ECE7DF; --field: #F8F6F2; --card: #FFFFFF;
--line: #DCD6CC; --line2: #E4DFD7;
@@ -6,7 +11,9 @@
--tile: #ECE7DF; --tile-photo: #ECE7DF; --tile-photo-on: #E3DDD3;
--btn: #18181B; --btn-ink: #FFFFFF;
--glow: #F3E6DC;
- --f: 'Inter Tight', 'Noto Sans SC', 'PingFang SC', 'Hiragino Sans', 'Apple SD Gothic Neo', system-ui, sans-serif;
+ /* Latin from the two self-hosted fonts (web/fonts, OFL); CJK from the reader's system, per page language. */
+ --cjk: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans CJK SC', 'Source Han Sans SC';
+ --f: 'Inter Tight', var(--cjk), system-ui, sans-serif;
--mono: 'JetBrains Mono', ui-monospace, monospace;
color-scheme: light;
}
@@ -32,6 +39,8 @@
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
+html:lang(ja) { --cjk: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Meiryo', 'Noto Sans CJK JP'; }
+html:lang(ko) { --cjk: 'Apple SD Gothic Neo', 'Malgun Gothic', 'Noto Sans CJK KR', 'Noto Sans KR'; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--f); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
@@ -674,3 +683,13 @@ button.lb-tile:hover img, button.lb-tile:focus-visible img { outline: 2px solid
/* The vertical swipe needs the stage's own vertical gestures (not while Details is open and the panel scrolls). */
.lb:not(.more) .lb-stage { touch-action: none; }
}
+
+/* Loading states (2026-11-01): a tile waits on a light placeholder; an image being swapped stays, dimmed, until the
+ new one is decoded; a failed one offers a retry. */
+.lb-stage .lb-tile img { background: var(--bg2); }
+.lb-stage img.wait { opacity: 0.55; transition: opacity 0.15s; }
+.lb-retry { position: absolute; left: 50%; top: 45%; transform: translate(-50%, -50%); z-index: 3; min-height: 40px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--btn); color: var(--btn-ink); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
+/* The grid renders all poses; cards far off screen skip layout and paint until they come near. The margin keeps the
+ hover shadow and focus ring inside the card's own box, which content-visibility clips to. */
+.grid > .card { content-visibility: auto; contain-intrinsic-size: auto 380px; padding: 24px; margin: -24px; }
+@media (max-width: 720px) { .grid > .card { padding: 0; margin: 0; contain-intrinsic-size: auto 260px; } }
diff --git a/web/app.js b/web/app.js
index 8040edd9..5ec29b86 100644
--- a/web/app.js
+++ b/web/app.js
@@ -180,14 +180,18 @@
const vi = (k * 2 + offset) % 5;
// Every other tile shows one of the map formats of the same view, so the hero says what each set holds.
const mk = k % 2 ? MAP_KINDS[(k >> 1) % 3] : null;
+ // Only the first tiles of the first row load at once; the rest (and the whole second row, hidden on phones)
+ // load as they scroll into view.
+ const lazy = offset || k >= 8 ? ' loading="lazy"' : '';
if (mk && p[mk][vi]) {
- tiles.push('<span class="mq-tile map" data-mq="' + p.id + ',' + vi + ',' + mk + '"><img src="' + src(mk, 'w300', p[mk][vi]) + '" alt="" width="146" height="146" decoding="async" fetchpriority="low"><b>' + esc(t()[mk]) + '</b></span>');
+ tiles.push('<span class="mq-tile map" data-mq="' + p.id + ',' + vi + ',' + mk + '"><img src="' + src(mk, 'w300', p[mk][vi]) + '" alt="" width="146" height="146" decoding="async" fetchpriority="low"' + lazy + '><b>' + esc(t()[mk]) + '</b></span>');
continue;
}
const v = p.line[vi] ? vi : firstView(p.line);
- tiles.push('<span class="mq-tile" data-mq="' + p.id + ',' + v + ',line" style="background:' + p.tint + '"><img src="' + src('line', 'w300', p.line[v]) + '" alt="" width="146" height="146" decoding="async" fetchpriority="low"></span>');
+ tiles.push('<span class="mq-tile" data-mq="' + p.id + ',' + v + ',line" style="background:' + p.tint + '"><img src="' + src('line', 'w300', p.line[v]) + '" alt="" width="146" height="146" decoding="async" fetchpriority="low"' + lazy + '></span>');
}
- return tiles.join('') + tiles.join('');
+ // The copy that makes the loop seamless is always off screen at first: lazy.
+ return tiles.join('') + tiles.join('').replace(/fetchpriority="low"(?! loading)/g, 'fetchpriority="low" loading="lazy"');
};
$('mq1').innerHTML = row(0);
$('mq2').innerHTML = row(3);
@@ -559,12 +563,12 @@
if (a.href) prefetchFile(a.href, a.getAttribute('download'));
}
function prefetchFile(url, name) {
- if (!SHARE_FILES || FILES.has(url)) return;
+ if (!SHARE_FILES || FILES.has(url)) return Promise.resolve();
const entry = { file: null };
FILES.set(url, entry);
// About 60 KB each; keep the recent ones so stepping back and forth needs no refetch.
if (FILES.size > 30) FILES.delete(FILES.keys().next().value);
- fetch(url).then((r) => (r.ok ? r.blob() : Promise.reject(r.status)))
+ return fetch(url).then((r) => (r.ok ? r.blob() : Promise.reject(r.status)))
.then((b) => { entry.file = new File([b], name, { type: 'image/webp' }); })
.catch(() => FILES.delete(url));
}
@@ -642,7 +646,7 @@
function overviewHtml(p, T) {
const v = LB.v;
const tile = (k, f) => f
- ? '<button type="button" class="lb-tile ' + k + (LB.hl === k ? ' hl' : '') + '" data-lbopen="' + k + '">' + '<img src="' + src(k, 'w600', f) + '" alt="' + esc(p.id + ' ' + nameOf(p) + ' · ' + T.views[v] + ' · ' + T[k]) + '"><span>' + esc(T[k]) + '</span></button>'
+ ? '<button type="button" class="lb-tile ' + k + (LB.hl === k ? ' hl' : '') + '" data-lbopen="' + k + '">' + '<img src="' + src(k, 'w600', f) + '" srcset="' + src(k, 'w300', f) + ' 300w, ' + src(k, 'w600', f) + ' 600w" sizes="(max-width: 860px) 31vw, 260px" fetchpriority="high" alt="' + esc(p.id + ' ' + nameOf(p) + ' · ' + T.views[v] + ' · ' + T[k]) + '"><span>' + esc(T[k]) + '</span></button>'
: '<div class="lb-tile ' + k + ' gap"><span class="lb-tile-gap">' + gapIcon(k === 'photo' ? true : k === 'line' ? false : k) + '<b>' + esc(k === 'photo' ? T.gapPhoto : k === 'line' ? T.gapLine : T.gapMap(T[k])) + '</b></span><span>' + esc(T[k]) + '</span></div>';
const kinds = ['line'].concat(p.clay.some(Boolean) ? MAP_KINDS : []);
const hasPhoto = p.photo.some(Boolean);
@@ -688,7 +692,7 @@
$('lbVeilOne').textContent = T.veilOne;
$('lbVeilAll').textContent = T.veilAll;
const img = $('lbImg');
- if (f && !compare) { img.src = src(kind, 'w900', f); img.alt = p.id + ' ' + nameOf(p) + ' · ' + T.views[LB.v]; }
+ if (f && !compare) { img.fetchPriority = 'high'; swapSrc(img, src(kind, 'w900', f), ''); img.alt = p.id + ' ' + nameOf(p) + ' · ' + T.views[LB.v]; }
img.hidden = !f || compare;
// Maps are drawn over the line art, so the line art can be wiped in over them to check the fit.
const wipe = isMap(m) && f && p.line[LB.v];
@@ -701,14 +705,14 @@
}
const pair = $('lbPair');
pair.hidden = !compare;
- pair.innerHTML = compare ? overviewHtml(p, T) : '';
+ morph(pair, compare ? overviewHtml(p, T) : '');
// The format row replaces the back buttons; they stay in the markup, hidden.
const fmts = hasMedium(p, 'compare') && !compare;
$('lbBack').hidden = $('lbBack2').hidden = true;
$('lb').classList.toggle('has-fmts', fmts);
$('lbFmts').hidden = !fmts;
$('lbFmts').setAttribute('aria-label', T.medium);
- $('lbFmts').innerHTML = fmts ? fmtsHtml(p, T) : '';
+ morph($('lbFmts'), fmts ? fmtsHtml(p, T) : '');
const miss = $('lbMissing');
miss.hidden = !!f || compare;
miss.innerHTML = f || compare ? '' : lbGapHtml(p, arr, m, T);
@@ -726,12 +730,12 @@
.map((s) => '<dt>' + NAME_LABEL[s] + '</dt><dd>' + esc(p['name_' + s]) + '</dd>').join('');
$('lbChips').setAttribute('aria-label', T.angle);
// Overview thumbnails show the line art when there is one.
- $('lbChips').innerHTML = VIEWS.map((_, i) => {
+ morph($('lbChips'), VIEWS.map((_, i) => {
const tk = compare ? (p.line[i] ? 'line' : p.clay[i] ? 'clay' : 'photo') : kind;
const both = false;
return '<button type="button" data-lbv="' + i + '" aria-pressed="' + (i === LB.v) + '"' + (arr[i] ? '' : ' disabled') + '>' +
'<span class="' + tk + (both ? ' both' : '') + '">' + (arr[i] ? '<img src="' + src(tk, 'w300', arr[i]) + '" alt="">' : ICON[isMap(kind) ? 'map' : kind]) + '</span>' + esc(T.views[i]) + '</button>';
- }).join('');
+ }).join(''));
const hasPhoto = p.photo.some(Boolean), hasMaps = p.clay.some(Boolean);
$('lb').classList.toggle('no-photo', !hasPhoto && !hasMaps);
$('lbMedium').setAttribute('aria-label', T.medium);
@@ -751,9 +755,9 @@
SAVE_SET = ALBUM && compare && !veil ? angleFiles(p) : null;
if (compare) setDl($('lbDl'), ALBUM ? (SHARE_FILES ? T.saveAngle : T.howSave) : T.download + ' · ' + T.line + ' 900×1200', p.line[LB.v], 'line', p);
else setDl($('lbDl'), ALBUM ? T.saveFmt(T[kind]) : T.download + ' · ' + (isMap(m) ? T[m] + ' ' : '') + (photo ? '900×1800' : '900×1200'), f, kind, p);
- if (SAVE_SET) SAVE_SET.forEach((x) => prefetchFile(x.url, x.name));
+
if (veil) [$('lbDl'), dl2].forEach((a) => { a.removeAttribute('href'); a.setAttribute('aria-disabled', 'true'); });
- else [$('lbDl'), dl2].forEach((a) => { if (!a.hidden) prefetch(a); });
+
clearTimeout(lbTip.timer);
$('lbTip').hidden = true;
// Static pose pages exist only for general std poses (tools/site_pages.py).
@@ -770,20 +774,48 @@
Save-Data and 2G; the fetches are low priority and the browser cache (images: a week) keeps them. */
const WARM = new Set();
const SLOW = (() => { const c = navigator.connection; return !!c && (c.saveData || /2g/.test(c.effectiveType || '')); })();
- function warm(urls) {
- urls.forEach((u) => {
- if (WARM.has(u)) return;
- WARM.add(u);
+ // One queue for everything fetched ahead: at most two at a time, and a new render (another angle, format or pose)
+ // drops whatever has not started, so stale preloads never compete with what is on screen now.
+ const Q = { gen: 0, jobs: [], running: 0 };
+ function pump() {
+ while (Q.running < 2 && Q.jobs.length) {
+ const j = Q.jobs.shift();
+ if (j.gen !== Q.gen) continue;
+ Q.running++;
+ j.run().catch(() => {}).then(() => { Q.running--; pump(); });
+ }
+ }
+ function warmImg(u) {
+ if (WARM.has(u)) return Promise.resolve();
+ WARM.add(u);
+ return new Promise((res) => {
const im = new Image();
im.decoding = 'async';
if ('fetchPriority' in im) im.fetchPriority = 'low';
+ im.onload = im.onerror = res;
im.src = u;
});
}
- let warmTimer = 0;
+ // Resolves when every image on the stage has loaded (or failed), or after 4 s at most.
+ function stageReady() {
+ const imgs = [...$('lbStage').querySelectorAll('#lbImg:not([hidden]), #lbPair img')].filter((im) => !im.complete || im.classList.contains('wait'));
+ const one = (im) => new Promise((res) => {
+ if (im.complete && !im.classList.contains('wait')) return res();
+ im.addEventListener('load', res, { once: true });
+ im.addEventListener('error', res, { once: true });
+ im.addEventListener('swapped', res, { once: true });
+ });
+ return Promise.race([Promise.all(imgs.map(one)), new Promise((res) => setTimeout(res, 4000))]);
+ }
function preloadAround(p, m) {
- if (SLOW || veiled(p)) return;
- clearTimeout(warmTimer);
+ const gen = ++Q.gen;
+ Q.jobs = [];
+ if (veiled(p)) return;
+ const first = [];
+ // Phones: the save button's files first (the overview's whole angle, or the one image), so a tap can share them.
+ if (SAVE_SET) SAVE_SET.forEach((x) => first.push(() => prefetchFile(x.url, x.name)));
+ else if (ALBUM && $('lbDl').href) first.push(() => prefetchFile($('lbDl').href, $('lbDl').getAttribute('download')));
+ if (SLOW) { stageReady().then(() => { if (gen === Q.gen) { first.forEach((run) => Q.jobs.push({ gen, run })); pump(); } }); return; }
const v = LB.v, others = VIEWS.map((_, i) => i).filter((i) => i !== v);
const kinds = ['line'].concat(p.clay.some(Boolean) ? MAP_KINDS : [], p.photo.some(Boolean) ? ['photo'] : []);
const urls = [];
@@ -795,10 +827,73 @@
}
const list = lbList(), next = list[(list.indexOf(p) + 1) % list.length];
if (next && next !== p && !veiled(next)) kinds.forEach((k) => { if (next[k] && next[k][v]) urls.push(src(k, m === 'compare' ? 'w600' : 'w900', next[k][v])); });
- // After the images on screen have had their turn.
- const go = () => warm(urls);
- const img = $('lbImg');
- warmTimer = setTimeout(() => (img.complete || m === 'compare' ? go() : img.addEventListener('load', go, { once: true })), 250);
+ // Only once the images on screen are in.
+ stageReady().then(() => {
+ if (gen !== Q.gen) return;
+ first.forEach((run) => Q.jobs.push({ gen, run }));
+ urls.forEach((u) => Q.jobs.push({ gen, run: () => warmImg(u) }));
+ pump();
+ });
+ }
+ /* Re-render without rebuilding: morph() keeps the existing nodes and only changes what differs, so switching angle
+ no longer recreates every image (which flashed even from cache). Images change through swapSrc(): the new one is
+ decoded off-screen and replaces the old in one step; until then the old one stays, dimmed (.wait). */
+ function morph(el, html) {
+ const tpl = document.createElement('template');
+ tpl.innerHTML = html;
+ syncKids(el, tpl.content);
+ }
+ function syncKids(a, b) {
+ const A = [...a.childNodes], B = [...b.childNodes];
+ if (A.length !== B.length || A.some((n, i) => n.nodeType !== B[i].nodeType || n.nodeName !== B[i].nodeName)) {
+ a.replaceChildren(...B);
+ a.querySelectorAll('img').forEach(watchImg);
+ return;
+ }
+ A.forEach((n, i) => {
+ const m = B[i];
+ if (n.nodeType === 3) { if (n.data !== m.data) n.data = m.data; return; }
+ if (n.nodeType !== 1) return;
+ for (const at of [...n.attributes]) if (!m.hasAttribute(at.name) && !(n.tagName === 'IMG' && /^(src|srcset|class|data-want)$/.test(at.name))) n.removeAttribute(at.name);
+ for (const at of [...m.attributes]) if (!(n.tagName === 'IMG' && /^(src|srcset)$/.test(at.name)) && n.getAttribute(at.name) !== at.value) n.setAttribute(at.name, at.value);
+ if (n.tagName === 'IMG') swapSrc(n, m.getAttribute('src'), m.getAttribute('srcset') || '');
+ else syncKids(n, m);
+ });
+ }
+ function swapSrc(img, s, ss) {
+ if ((img.dataset.want || img.getAttribute('src')) === s && (img.getAttribute('srcset') || '') === ss) return;
+ img.dataset.want = s;
+ if (!img.getAttribute('src')) { if (ss) img.srcset = ss; img.src = s; watchImg(img); return; }
+ img.classList.add('wait');
+ const im = new Image();
+ if (ss) { im.sizes = img.sizes; im.srcset = ss; }
+ im.src = s;
+ im.decode().catch(() => {}).then(() => {
+ if (img.dataset.want !== s) return;
+ if (ss) img.srcset = ss; else img.removeAttribute('srcset');
+ img.src = s;
+ img.classList.remove('wait');
+ img.dispatchEvent(new Event('swapped'));
+ });
+ }
+ // A failed image gets a retry button instead of a blank box.
+ function watchImg(img) {
+ img.addEventListener('error', () => {
+ const box = img.closest('.lb-tile, .lb-stage');
+ if (!box || box.querySelector(':scope > .lb-retry')) return;
+ const b = document.createElement('button');
+ b.type = 'button';
+ b.className = 'lb-retry';
+ b.textContent = t().retry;
+ b.addEventListener('click', (e) => {
+ e.stopPropagation();
+ b.remove();
+ const u = img.getAttribute('src').split('?')[0] + '?r=' + Date.now();
+ img.removeAttribute('srcset');
+ img.src = u;
+ });
+ box.appendChild(b);
+ }, { once: true });
}
const posePage = (id) => BASE + PREFIX[S.lang] + 'pose/' + id + '/';
// Same rule as tools/build_site.py: only general-rated std poses get a static page.
@@ -932,6 +1027,7 @@
$('lbWipeRange').addEventListener('input', setWipe);
$('lbWipeBar').addEventListener('pointerdown', (e) => e.stopPropagation());
let swipeX = null;
+ watchImg($('lbImg'));
let swipeY = null;
$('lbStage').addEventListener('pointerdown', (e) => { swipeX = e.clientX; swipeY = e.clientY; });
$('lbStage').addEventListener('pointerup', (e) => {
diff --git a/web/fonts/OFL-InterTight.txt b/web/fonts/OFL-InterTight.txt
new file mode 100644
index 00000000..18d0da5d
--- /dev/null
+++ b/web/fonts/OFL-InterTight.txt
@@ -0,0 +1,93 @@
+Copyright 2022 The Inter Project Authors (https://github.com/rsms/inter-tight)
+
+This Font Software is licensed under the SIL Open Font License, Version 1.1.
+This license is copied below, and is also available with a FAQ at:
+https://scripts.sil.org/OFL
+
+
+-----------------------------------------------------------
+SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
+-----------------------------------------------------------
+
+PREAMBLE
+The goals of the Open Font License (OFL) are to stimulate worldwide
+development of collaborative font projects, to support the font creation
+efforts of academic and linguistic communities, and to provide a free and
+open framework in which fonts may be shared and improved in partnership
+with others.
+
+The OFL allows the licensed fonts to be used, studied, modified and
+redistributed freely as long as they are not sold by themselves. The
+fonts, including any derivative works, can be bundled, embedded,
+redistributed and/or sold with any software provided that any reserved
+names are not used by derivative works. The fonts and derivatives,
+however, cannot be released under any other type of license. The
+requirement for fonts to remain under this license does not apply
+to any document created using the fonts or their derivatives.
+
+DEFINITIONS
+"Font Software" refers to the set of files released by the Copyright
+Holder(s) under this license and clearly marked as such. This may
+include source files, build scripts and documentation.
+
+"Reserved Font Name" refers to any names specified as such after the
+copyright statement(s).
+
+"Original Version" refers to the collection of Font Software components as
+distributed by the Copyright Holder(s).
+
+"Modified Version" refers to any derivative made by adding to, deleting,
+or substituting -- in part or in whole -- any of the components of the
+Original Version, by changing formats or by porting the Font Software to a
+new environment.
+
+"Author" refers to any designer, engineer, programmer, technical
+writer or other person who contributed to the Font Software.
+
+PERMISSION & CONDITIONS
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of the Font Software, to use, study, copy, merge, embed, modify,
+redistribute, and sell modified and unmodified copies of the Font
+Software, subject to the following conditions:
+
+1) Neither the Font Software nor any of its individual components,
+in Original or Modified Versions, may be sold by itself.
+
+2) Original or Modified Versions of the Font Software may be bundled,
+redistributed and/or sold with any software, provided that each copy
+contains the above copyright notice and this license. These can be
+included either as stand-alone text files, human-readable headers or
+in the appropriate machine-readable metadata fields within text or
+binary files as long as those fields can be easily viewed by the user.
+
+3) No Modified Version of the Font Software may use the Reserved Font
+Name(s) unless explicit written permission is granted by the corresponding
+Copyright Holder. This restriction only applies to the primary font name as
+presented to the users.
+
+4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
+Software shall not be used to promote, endorse or advertise any
+Modified Version, except to acknowledge the contribution(s) of the
+Copyright Holder(s) and the Author(s) or with their explicit written
+permission.
+
+5) The Font Software, modified or unmodified, in part or in whole,
+must be distributed entirely under this license, and must not be
+distributed under any other license. The requirement for fonts to
+remain under this license does not apply to any document created
+using the Font Software.
+
+TERMINATION
+This license becomes null and void if any of the above conditions are
+not met.
+
+DISCLAIMER
+THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
+OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
+COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
+INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
+DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
+OTHER DEALINGS IN THE FONT SOFTWARE.
diff --git a/web/fonts/OFL-JetBrainsMono.txt b/web/fonts/OFL-JetBrainsMono.txt
new file mode 100644
index 00000000..821a3dac
--- /dev/null
+++ b/web/fonts/OFL-JetBrainsMono.txt
@@ -0,0 +1,93 @@
+Copyright 2020 The JetBrains Mono Project Authors (https://github.com/JetBrains/JetBrainsMono)
+
+This Font Software is licensed under the SIL Open Font License, Version 1.1.
+
+This license is copied below, and is also available with a FAQ at: https://scripts.sil.org/OFL
+
+
+-----------------------------------------------------------
+SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
+-----------------------------------------------------------
+
+PREAMBLE
+The goals of the Open Font License (OFL) are to stimulate worldwide
+development of collaborative font projects, to support the font creation
+efforts of academic and linguistic communities, and to provide a free and
+open framework in which fonts may be shared and improved in partnership
+with others.
+
+The OFL allows the licensed fonts to be used, studied, modified and
+redistributed freely as long as they are not sold by themselves. The
+fonts, including any derivative works, can be bundled, embedded,
+redistributed and/or sold with any software provided that any reserved
+names are not used by derivative works. The fonts and derivatives,
+however, cannot be released under any other type of license. The
+requirement for fonts to remain under this license does not apply
+to any document created using the fonts or their derivatives.
+
+DEFINITIONS
+"Font Software" refers to the set of files released by the Copyright
+Holder(s) under this license and clearly marked as such. This may
+include source files, build scripts and documentation.
+
+"Reserved Font Name" refers to any names specified as such after the
+copyright statement(s).
+
+"Original Version" refers to the collection of Font Software components as
+distributed by the Copyright Holder(s).
+
+"Modified Version" refers to any derivative made by adding to, deleting,
+or substituting -- in part or in whole -- any of the components of the
+Original Version, by changing formats or by porting the Font Software to a
+new environment.
+
+"Author" refers to any designer, engineer, programmer, technical
+writer or other person who contributed to the Font Software.
+
+PERMISSION & CONDITIONS
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of the Font Software, to use, study, copy, merge, embed, modify,
+redistribute, and sell modified and unmodified copies of the Font
+Software, subject to the following conditions:
+
+1) Neither the Font Software nor any of its individual components,
+in Original or Modified Versions, may be sold by itself.
+
+2) Original or Modified Versions of the Font Software may be bundled,
+redistributed and/or sold with any software, provided that each copy
+contains the above copyright notice and this license. These can be
+included either as stand-alone text files, human-readable headers or
+in the appropriate machine-readable metadata fields within text or
+binary files as long as those fields can be easily viewed by the user.
+
+3) No Modified Version of the Font Software may use the Reserved Font
+Name(s) unless explicit written permission is granted by the corresponding
+Copyright Holder. This restriction only applies to the primary font name as
+presented to the users.
+
+4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
+Software shall not be used to promote, endorse or advertise any
+Modified Version, except to acknowledge the contribution(s) of the
+Copyright Holder(s) and the Author(s) or with their explicit written
+permission.
+
+5) The Font Software, modified or unmodified, in part or in whole,
+must be distributed entirely under this license, and must not be
+distributed under any other license. The requirement for fonts to
+remain under this license does not apply to any document created
+using the Font Software.
+
+TERMINATION
+This license becomes null and void if any of the above conditions are
+not met.
+
+DISCLAIMER
+THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
+OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
+COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
+INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
+DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
+OTHER DEALINGS IN THE FONT SOFTWARE.
diff --git a/web/fonts/inter-tight-latin.woff2 b/web/fonts/inter-tight-latin.woff2
new file mode 100644
index 00000000..228154ff
Binary files /dev/null and b/web/fonts/inter-tight-latin.woff2 differ
diff --git a/web/fonts/jetbrains-mono-500-latin.woff2 b/web/fonts/jetbrains-mono-500-latin.woff2
new file mode 100644
index 00000000..a43f1c3b
Binary files /dev/null and b/web/fonts/jetbrains-mono-500-latin.woff2 differ
diff --git a/web/i18n.js b/web/i18n.js
index d64e522e..61892d7f 100644
--- a/web/i18n.js
+++ b/web/i18n.js
@@ -21,7 +21,7 @@ window.I18N = {
clay: '白模', depth: '深度', normal: '法线', overlay: '对照线稿',
fmtNote: { clay: '灰色人台,带体积和明暗,和线稿一样可以直接当参考图。', depth: '深度图,白近黑远。给 ComfyUI 等的 ControlNet Depth 用,会带上人台的体型。', normal: '法线图,颜色表示表面朝向。给 ControlNet Normal 用,会带上人台的体型。' },
gapLine: '正在补画', gapLineSub: '这个机位还在画,先看看别的吧', gapLineShort: '补画中',
- gapPhoto: '暂无实拍', gapPhotoSub: '这个机位先看线稿吧', gapPhotoShort: '无实拍', gapMap: (f) => '暂无' + f, overview: '全部格式', allShort: '全部', saveAngle: '保存这个机位', howSave: '怎么保存?', saveFmt: (f) => '保存' + f, holdMany: '这个浏览器不能一次存多张。点一张放大,再长按图片选「保存图片」。', overviewNote: '同一机位的全部格式,点一张放大。', gapOther: '先看看别的机位吧',
+ gapPhoto: '暂无实拍', gapPhotoSub: '这个机位先看线稿吧', gapPhotoShort: '无实拍', gapMap: (f) => '暂无' + f, overview: '全部格式', allShort: '全部', retry: '重试', saveAngle: '保存这个机位', howSave: '怎么保存?', saveFmt: (f) => '保存' + f, holdMany: '这个浏览器不能一次存多张。点一张放大,再长按图片选「保存图片」。', overviewNote: '同一机位的全部格式,点一张放大。', gapOther: '先看看别的机位吧',
goView: (v) => '看' + v, goLine: '看线稿', goPhoto: '看实拍',
empty: '没有找到匹配的姿势', cols2: '两列', cols3: '三列', prevPose: '上一套', nextPose: '下一套', details: '详情',
close: '关闭', prevAngle: '上一个机位', nextAngle: '下一个机位', open: (id) => '打开 ' + id + ' 大图',
@@ -57,7 +57,7 @@ window.I18N = {
clay: 'クレイ', depth: '深度', normal: '法線', overlay: '線画と比較',
fmtNote: { clay: 'グレーのマネキン。立体感と陰影があり、線画と同じく参照画像としてそのまま使えます。', depth: '深度マップ(白が手前、黒が奥)。ComfyUI などの ControlNet Depth 用。マネキンの体型も反映されます。', normal: '法線マップ(色で面の向きを表します)。ControlNet Normal 用。マネキンの体型も反映されます。' },
gapLine: 'ただいま描き足し中', gapLineSub: 'ほかのアングルを先にどうぞ', gapLineShort: '描き足し中',
- gapPhoto: '実写はまだありません', gapPhotoSub: 'このアングルは線画でどうぞ', gapPhotoShort: '実写なし', gapMap: (f) => f + 'はありません', overview: 'すべての形式', allShort: 'すべて', saveAngle: 'このアングルを保存', howSave: '保存のしかた', saveFmt: (f) => f + 'を保存', holdMany: 'このブラウザではまとめて保存できません。画像をタップして拡大し、長押しで「写真に保存」を選んでください。', overviewNote: 'このアングルのすべての形式。タップで拡大します。', gapOther: 'ほかのアングルを先にどうぞ',
+ gapPhoto: '実写はまだありません', gapPhotoSub: 'このアングルは線画でどうぞ', gapPhotoShort: '実写なし', gapMap: (f) => f + 'はありません', overview: 'すべての形式', allShort: 'すべて', retry: '再読み込み', saveAngle: 'このアングルを保存', howSave: '保存のしかた', saveFmt: (f) => f + 'を保存', holdMany: 'このブラウザではまとめて保存できません。画像をタップして拡大し、長押しで「写真に保存」を選んでください。', overviewNote: 'このアングルのすべての形式。タップで拡大します。', gapOther: 'ほかのアングルを先にどうぞ',
goView: (v) => v + 'を見る', goLine: '線画を見る', goPhoto: '実写を見る',
empty: '該当するポーズがありません', cols2: '2列', cols3: '3列', prevPose: '前のポーズ', nextPose: '次のポーズ', details: '詳細',
close: '閉じる', prevAngle: '前のアングル', nextAngle: '次のアングル', open: (id) => id + ' を拡大表示',
@@ -93,7 +93,7 @@ window.I18N = {
clay: 'Clay', depth: 'Depth', normal: 'Normal', overlay: 'Line art',
fmtNote: { clay: 'A grey mannequin with volume and shading; use it as a reference image just like the line art.', depth: 'Depth map, white is near. For ControlNet Depth in ComfyUI and similar tools; it carries the mannequin\'s build.', normal: 'Normal map, colour shows which way each surface faces. For ControlNet Normal; it carries the mannequin\'s build.' },
gapLine: 'Still drawing this one', gapLineSub: 'Meanwhile, try another angle', gapLineShort: 'Drawing',
- gapPhoto: 'No photo yet', gapPhotoSub: 'The line art has this angle', gapPhotoShort: 'No photo', gapMap: (f) => 'No ' + f.toLowerCase() + ' map', overview: 'All formats', allShort: 'All', saveAngle: 'Save this angle', howSave: 'How to save', saveFmt: (f) => 'Save ' + f.toLowerCase(), holdMany: 'This browser can\'t save several images at once. Tap one to enlarge it, then press and hold it and choose Save Image.', overviewNote: 'Every format of this angle. Click one to enlarge it.', gapOther: 'Meanwhile, try another angle',
+ gapPhoto: 'No photo yet', gapPhotoSub: 'The line art has this angle', gapPhotoShort: 'No photo', gapMap: (f) => 'No ' + f.toLowerCase() + ' map', overview: 'All formats', allShort: 'All', retry: 'Retry', saveAngle: 'Save this angle', howSave: 'How to save', saveFmt: (f) => 'Save ' + f.toLowerCase(), holdMany: 'This browser can\'t save several images at once. Tap one to enlarge it, then press and hold it and choose Save Image.', overviewNote: 'Every format of this angle. Click one to enlarge it.', gapOther: 'Meanwhile, try another angle',
goView: (v) => 'See ' + v, goLine: 'See line art', goPhoto: 'See photo',
empty: 'No poses match', cols2: 'Two columns', cols3: 'Three columns', prevPose: 'Previous pose', nextPose: 'Next pose', details: 'Details',
close: 'Close', prevAngle: 'Previous angle', nextAngle: 'Next angle', open: (id) => 'Open ' + id,
@@ -129,7 +129,7 @@ window.I18N = {
clay: '클레이', depth: '깊이', normal: '노멀', overlay: '선화 비교',
fmtNote: { clay: '회색 마네킹으로 입체감과 명암이 있습니다. 선화처럼 참고 이미지로 바로 쓸 수 있습니다.', depth: '깊이 맵(흰색이 가까움). ComfyUI 등의 ControlNet Depth용이며 마네킹 체형이 반영됩니다.', normal: '노멀 맵(색이 표면 방향을 나타냄). ControlNet Normal용이며 마네킹 체형이 반영됩니다.' },
gapLine: '지금 그리는 중이에요', gapLineSub: '먼저 다른 앵글을 보세요', gapLineShort: '그리는 중',
- gapPhoto: '아직 실사가 없어요', gapPhotoSub: '이 앵글은 선화로 보세요', gapPhotoShort: '실사 없음', gapMap: (f) => f + ' 없음', overview: '모든 형식', allShort: '전체', saveAngle: '이 앵글 저장', howSave: '저장 방법', saveFmt: (f) => f + ' 저장', holdMany: '이 브라우저는 여러 장을 한 번에 저장할 수 없어요. 이미지를 눌러 크게 본 뒤 길게 눌러 "이미지 저장"을 고르세요.', overviewNote: '이 앵글의 모든 형식입니다. 눌러서 크게 보세요.', gapOther: '먼저 다른 앵글을 보세요',
+ gapPhoto: '아직 실사가 없어요', gapPhotoSub: '이 앵글은 선화로 보세요', gapPhotoShort: '실사 없음', gapMap: (f) => f + ' 없음', overview: '모든 형식', allShort: '전체', retry: '다시 시도', saveAngle: '이 앵글 저장', howSave: '저장 방법', saveFmt: (f) => f + ' 저장', holdMany: '이 브라우저는 여러 장을 한 번에 저장할 수 없어요. 이미지를 눌러 크게 본 뒤 길게 눌러 "이미지 저장"을 고르세요.', overviewNote: '이 앵글의 모든 형식입니다. 눌러서 크게 보세요.', gapOther: '먼저 다른 앵글을 보세요',
goView: (v) => v + ' 보기', goLine: '선화 보기', goPhoto: '실사 보기',
empty: '일치하는 포즈가 없습니다', cols2: '2열', cols3: '3열', prevPose: '이전 포즈', nextPose: '다음 포즈', details: '상세',
close: '닫기', prevAngle: '이전 앵글', nextAngle: '다음 앵글', open: (id) => id + ' 크게 보기',
diff --git a/web/index.html b/web/index.html
index c974c988..40145b9e 100644
--- a/web/index.html
+++ b/web/index.html
@@ -5,9 +5,7 @@
<meta name="viewport" content="width=device-width,initial-scale=1,viewport-fit=cover">
__HEAD__
<meta name="theme-color" content="#F5F2ED">
-<link rel="preconnect" href="https://fonts.googleapis.com">
-<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
-<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Inter+Tight:wght@500;600;700;800&family=Noto+Sans+SC:wght@400;500;700;900&family=JetBrains+Mono:wght@500&display=swap">
+<link rel="preload" href="__BASE__fonts/inter-tight-latin.woff2" as="font" type="font/woff2" crossorigin>
<link rel="stylesheet" href="__BASE__app.css?v=__VERSION__">
</head>
<body>