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);