From 874adb111f9c95216bdb4c04eb8cde3c5201848b Mon Sep 17 00:00:00 2001 From: Matthias Andreas Benkard Date: Tue, 13 Nov 2012 13:30:49 +0100 Subject: Defer loading of Persona scripts. --- src/mulk/benki/util.clj | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/mulk/benki/util.clj b/src/mulk/benki/util.clj index 19575c3..a5ee164 100644 --- a/src/mulk/benki/util.clj +++ b/src/mulk/benki/util.clj @@ -58,9 +58,11 @@ [:script {:type "text/javascript" :src (resolve-uri "/3rdparty/jquery/jquery-1.7.min.js")}] [:script {:type "text/javascript" - :src "https://login.persona.org/include.js"}] + :src "https://login.persona.org/include.js" + :defer "defer"}] [:script {:type "text/javascript" - :src (resolve-uri "/js/browserid.js")}] + :src (resolve-uri "/js/browserid.js") + :defer "defer"}] [:link {:type "text/css" :rel "stylesheet" :href (resolve-uri "/style/benki.css")}] -- cgit v1.2.3