From 9c2913af189b62c028f6f773370f50f9e6c13307 Mon Sep 17 00:00:00 2001 From: alex-s168 Date: Mon, 11 Aug 2025 16:38:10 +0200 Subject: [PATCH] c --- pages/compiler-inlining.typ | 2 +- simple-page-layout.typ | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/compiler-inlining.typ b/pages/compiler-inlining.typ index 82bbcd0..74aa326 100644 --- a/pages/compiler-inlining.typ +++ b/pages/compiler-inlining.typ @@ -145,7 +145,7 @@ ] #section[ - = Function *out*lining + = Function outlining A related optimization is "outlining". It's the opposite to inlining. It moves duplicate code into a function, to reduce code size, and sometimes increase performance (because of instruction caching) diff --git a/simple-page-layout.typ b/simple-page-layout.typ index 6d5a896..7e8374a 100644 --- a/simple-page-layout.typ +++ b/simple-page-layout.typ @@ -99,7 +99,7 @@ content } - #if not is-nano { + #context if (not is-nano) and is-html() { html-script(" function gotoVariant(variant) { window.location.href = window.location.href.replace(/\.\w+.html/g, variant);