From d2d29b2cf958d071e54ca201b3ecc7c605969a46 Mon Sep 17 00:00:00 2001 From: Calen Pennington Date: Mon, 23 Jul 2012 11:16:13 -0400 Subject: [PATCH] Move most javascript loading to below the body, rather than head --- lms/templates/courseware.html | 4 +- lms/templates/dashboard.html | 46 ++++++------ lms/templates/gradebook.html | 5 +- lms/templates/gradebook_profilegraphs.html | 2 +- lms/templates/main.html | 20 ++--- lms/templates/portal/course_about.html | 74 ++++++++++--------- lms/templates/profile.html | 2 +- lms/templates/simplewiki/simplewiki_base.html | 2 +- 8 files changed, 81 insertions(+), 74 deletions(-) diff --git a/lms/templates/courseware.html b/lms/templates/courseware.html index 29178374fe..f6133860f4 100644 --- a/lms/templates/courseware.html +++ b/lms/templates/courseware.html @@ -3,7 +3,7 @@ <%block name="bodyclass">courseware <%block name="title">Courseware – MITx 6.002x -<%block name="headextra"> +<%block name="js_extra"> @@ -27,9 +27,7 @@ <%static:js group='courseware'/> <%include file="mathjax_include.html" /> - -<%block name="js_extra"> + +
@@ -110,25 +134,3 @@
- - diff --git a/lms/templates/gradebook.html b/lms/templates/gradebook.html index 12f820c8c9..7c2908dc77 100644 --- a/lms/templates/gradebook.html +++ b/lms/templates/gradebook.html @@ -1,10 +1,13 @@ <%inherit file="main.html" /> <%namespace name='static' file='static_content.html'/> -<%block name="headextra"> +<%block name="js_extra"> + + +<%block name="headextra">