AndrewRqy commited on
Commit ·
966abce
1
Parent(s): 78ff6ab
Drop wizard-desk backdrop + open-book illustration — more HF load-time wins
Browse files501 unmodified lines502503504505506507508509510511512513514177 unmodified lines692693694695696697698501 unmodified linesfor o in state.oracles:text = (o.text or "").strip() or blank_labelitems.append(f"<li><em>{_md_safe(text)}</em></li>")book_uri = _sprite_data_uri_app("open_book_spread")alt_text = _t("alt_sealed_grimoire", lang)book_img = (f"<img class='grimoire-summary-book' src='{book_uri}' "f"alt='{_md_safe(alt_text)}'/>"if book_uri else "")header = _md_safe(_t("summary_five_sealed", lang))return ("<div class='grimoire-summary'>"177 unmodified lines_sprite_data_uri_app(f"hero_{theme_key_for_sprites}")or _sprite_data_uri_app("hero"))desk_uri = _sprite_data_uri_app("wizard_desk_scene")if not wizard_uri or not hero_uri:fallback = ("<div class='oracle-inscribe-figs' style='text-align:center;"501 unmodified lines502503504505506507508509510511512177 unmodified lines690691692693694695696697698699501 unmodified linesfor o in state.oracles:text = (o.text or "").strip() or blank_labelitems.append(f"<li><em>{_md_safe(text)}</em></li>")# PERF: skip the open-book illustration above the five-oracle summary.# The PNG was ~200-300 KB and added an extra slow HTTP fetch to the# closing-grimoire spread. The numbered list with the strong heading# carries the meaning on its own.book_img = ""header = _md_safe(_t("summary_five_sealed", lang))return ("<div class='grimoire-summary'>"177 unmodified lines_sprite_data_uri_app(f"hero_{theme_key_for_sprites}")or _sprite_data_uri_app("hero"))# PERF: skip the wizard-desk backdrop image. The PNG is ~200-400 KB# and was being loaded behind the mentor/apprentice figures on the# front page. Replaced with a CSS gradient via empty desk_uri.desk_uri = ""if not wizard_uri or not hero_uri:fallback = ("<div class='oracle-inscribe-figs' style='text-align:center;"
app.py+9-8