aboutsummaryrefslogtreecommitdiffstats
path: root/frontend-vanilla/public/themes/codex.css
diff options
context:
space:
mode:
authorAdam Mathes <adam@adammathes.com>2026-02-18 15:01:22 -0800
committerGitHub <noreply@github.com>2026-02-18 15:01:22 -0800
commit082089e427df8e34a366684f71f35ed700ec5d04 (patch)
tree6a8eb1314cc203f4e070c98422a9cb75699766f1 /frontend-vanilla/public/themes/codex.css
parent7776e81b39130c211eb0ec566c6467a28a9fa64c (diff)
parent0876a683cdc344b200dbd65aa137969a1528c85d (diff)
downloadneko-082089e427df8e34a366684f71f35ed700ec5d04.tar.gz
neko-082089e427df8e34a366684f71f35ed700ec5d04.tar.bz2
neko-082089e427df8e34a366684f71f35ed700ec5d04.zip
Merge pull request #20 from adammathes/claude/investigate-theme-performance-GjjYA
Optimize scroll performance and reduce layout thrashing
Diffstat (limited to 'frontend-vanilla/public/themes/codex.css')
-rw-r--r--frontend-vanilla/public/themes/codex.css11
1 files changed, 7 insertions, 4 deletions
diff --git a/frontend-vanilla/public/themes/codex.css b/frontend-vanilla/public/themes/codex.css
index ece9e2d..50942e6 100644
--- a/frontend-vanilla/public/themes/codex.css
+++ b/frontend-vanilla/public/themes/codex.css
@@ -49,8 +49,11 @@ body {
background-color: var(--bg-color);
color: var(--text-color);
-webkit-font-smoothing: antialiased;
- text-rendering: optimizeLegibility;
- font-feature-settings: 'liga' 1, 'kern' 1, 'onum' 1;
+ /* text-rendering: optimizeLegibility triggers expensive kerning/ligature
+ computation on all text. On mobile with long feed content this causes
+ significant layout slowdowns during scroll. The default 'auto' lets
+ the browser optimize per-element. font-feature-settings similarly
+ forces the shaper to run on every glyph. Removed for performance. */
}
/* ---- Sidebar: Table of Contents ---- */
@@ -236,8 +239,8 @@ body {
font-size: 1rem;
line-height: 1.75;
color: var(--text-color);
- hyphens: auto;
- -webkit-hyphens: auto;
+ /* hyphens: auto removed -- requires dictionary lookups during layout for
+ every line break, expensive with long feed content during scroll. */
}
.item-description a {