favor BottomOfBody

This commit is contained in:
Greg Weber 2012-02-26 15:30:09 -08:00
parent a569c7f960
commit ffaa1d6a32

View File

@ -599,6 +599,7 @@ $maybe j <- jscript
$nothing
<script>^{jelper j}
|]
headAll = [HAMLET|
\^{head'}
$forall s <- stylesheets
@ -615,16 +616,17 @@ $forall s <- css
$nothing
<style>#{content}
$case jsLoader master
$of BottomOfBody
$of BottomOfHeadAsync asyncJsLoader
^{asyncJsLoader asyncScripts mcomplete}
$of BottomOfHeadBlocking
^{regularScriptLoad}
$of BottomOfBody
|]
let bodyScript = [HAMLET|
^{body}
^{regularScriptLoad}
|]
return $ PageContent title headAll (case jsLoader master of
BottomOfBody -> bodyScript
_ -> body)