mirror of
https://github.com/alex-s168/website.git
synced 2025-09-09 17:05:07 +02:00
c
This commit is contained in:
@@ -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)
|
||||
|
||||
|
@@ -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);
|
||||
|
Reference in New Issue
Block a user