Skip to content
Browse files

Move javascript to near end of html for faster page loading; esp. ext…

…ernal resource (e.g. typekit)
  • Loading branch information...
1 parent 9be5dbf commit 1140a60697cc63a3fc1028c5cd181c54b662e1d7 @Nagyman committed Mar 15, 2012
Showing with 13 additions and 16 deletions.
  1. +13 −16 readthedocs/templates/base.html
View
29 readthedocs/templates/base.html
@@ -13,22 +13,6 @@
<!-- css -->
<link rel="stylesheet" href="{{ MEDIA_URL }}css/core.css">
{% block extra_links %}{% endblock %}
-
- <!-- js -->
-
- <!-- jquery -->
- <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script>
- <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.4/jquery-ui.min.js"></script>
-
- <!-- typekit -->
- <script type="text/javascript" src="http://use.typekit.com/xgl8ypn.js"></script>
- <script type="text/javascript">try{Typekit.load();}catch(e){}</script>
-
- <script type="text/javascript" src="{{ MEDIA_URL }}javascript/instantsearch.js"></script>
- <script type="text/javascript" src="{{ MEDIA_URL }}javascript/rtd.js"></script>
-
- {% block extra_scripts %}{% endblock %}
-
</head>
<body class="{% block body_class %}{% endblock %}">
@@ -78,6 +62,19 @@
</body>
+<!-- jquery -->
+<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script>
+<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.4/jquery-ui.min.js"></script>
+
+<script type="text/javascript" src="{{ MEDIA_URL }}javascript/instantsearch.js"></script>
+<script type="text/javascript" src="{{ MEDIA_URL }}javascript/rtd.js"></script>
+
+{% block extra_scripts %}{% endblock %}
+
+<!-- typekit -->
+<script type="text/javascript" src="http://use.typekit.com/xgl8ypn.js"></script>
+<script type="text/javascript">try{Typekit.load();}catch(e){}</script>
+
<!-- BEGIN google analytics -->
<script type="text/javascript">

0 comments on commit 1140a60

Please sign in to comment.
Something went wrong with that request. Please try again.