From 259976d92786abceafc18a44c50a02952e7ff682 Mon Sep 17 00:00:00 2001 From: nek0 Date: Tue, 19 May 2015 03:43:55 +0200 Subject: [PATCH] now loading scripts before content --- Foundation.hs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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.