]> asedeno.scripts.mit.edu Git - bluechips.git/commitdiff
Don't wait until the end of the page load to get javascript.
authorEvan Broder <broder@mit.edu>
Mon, 1 Feb 2010 15:21:14 +0000 (10:21 -0500)
committerEvan Broder <broder@mit.edu>
Mon, 1 Feb 2010 15:21:14 +0000 (10:21 -0500)
bluechips/templates/base.mako
bluechips/templates/mobile/base.mako

index 38117c92a1c4526bebff6a4c48c2b6131661dce2..f50824c5308b049589e5549f4c460684f20d9be9 100644 (file)
@@ -6,6 +6,9 @@
     <title>${self.title()}</title>
     ${h.stylesheet_link('/css/main.css')}
     ${h.stylesheet_link('/js/jquery.date_input.css')}
+    ${h.javascript_link('//ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js')}
+    ${h.javascript_link('/js/jquery.date_input.js')}
+    ${h.javascript_link('/js/admin.js')}
   </head>
   <body>
     % if c.mobile_client:
@@ -64,9 +67,6 @@
     <div id="content">
       ${next.body()}
     </div>
-    ${h.javascript_link('//ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js')}
-    ${h.javascript_link('/js/jquery.date_input.js')}
-    ${h.javascript_link('/js/admin.js')}
   </body>
 </html>
 
index 099bcb99bf4a49ced28d7bf56eb80c0b38bdd359..e9e4993a6ca1b04b5cb728ed05a239b0da39af03 100644 (file)
@@ -11,6 +11,8 @@
     <link rel="apple-touch-startup-image" href="/icons/apple-touch-startup.png" />
     <meta name="apple-mobile-web-app-capable" content="yes" />
     <meta name="apple-mobile-web-app-status-bar-style" content="black" />
+    ${h.javascript_link('//ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js')}
+    ${h.javascript_link('/js/mobile.js')}
   </head>
   <body>
     % for message in h.flash.pop_messages():
@@ -20,8 +22,6 @@
     <div id="non-mobile">
       <a href="${h.url_for(request.url, use_non_mobile='yes')}">Use non mobile interface</a>
     </div>
-    ${h.javascript_link('//ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js')}
-    ${h.javascript_link('/js/mobile.js')}
   </body>
 </html>