diff --git a/Foundation.hs b/Foundation.hs index 97f4a22..e597585 100644 --- a/Foundation.hs +++ b/Foundation.hs @@ -169,8 +169,8 @@ instance Yesod App where -- Generate a unique filename based on the content itself genFileName lbs = "autogen-" ++ base64md5 lbs - -- Place Javascript at bottom of the body tag so the rest of the page loads first - jsLoader _ = BottomOfBody + -- Place Javascript at head so scripts become loaded before content + jsLoader _ = BottomOfHeadBlocking -- What messages should be logged. The following includes all messages when -- in development, and warnings and errors in production.