diff options
Diffstat (limited to 'plugins/base/src')
-rw-r--r-- | plugins/base/src/main/kotlin/renderers/html/HtmlRenderer.kt | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/base/src/main/kotlin/renderers/html/HtmlRenderer.kt b/plugins/base/src/main/kotlin/renderers/html/HtmlRenderer.kt index c5b0e511..b61d513a 100644 --- a/plugins/base/src/main/kotlin/renderers/html/HtmlRenderer.kt +++ b/plugins/base/src/main/kotlin/renderers/html/HtmlRenderer.kt @@ -787,7 +787,10 @@ open class HtmlRenderer( type = ScriptType.textJavaScript, src = "###$it" ) { - async = true + if (it == "scripts/main.js") + defer = true + else + async = true } } it.isImage() -> if (it.isAbsolute) link(href = it) @@ -832,9 +835,6 @@ open class HtmlRenderer( } div { id = "main" - templateCommand(PathToRootSubstitutionCommand("###", default = pathToRoot)) { - script(type = ScriptType.textJavaScript, src = "###scripts/main.js") {} - } content() div(classes = "footer") { span("go-to-top-icon") { |