Created
December 1, 2010 10:41
-
-
Save idan/723316 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html> | |
<head> | |
<!-- All JavaScript at the bottom, except for Modernizr which enables HTML5 elements & feature detects --> | |
<script src="js/modernizr-1.6.min.js"></script> | |
<!-- | |
Typekit needs to happen inside the HEAD, but below CSS, else we get the FOUT | |
http://www.stevesouders.com/blog/2009/10/13/font-face-and-performance/ | |
--> | |
{% block typekit %} | |
<script type="text/javascript" src="http://use.typekit.com/XXXXXX.js"></script> | |
<script type="text/javascript">try{Typekit.load();}catch(e){}</script> | |
{% endblock typekit %} | |
{% block extra_head %}{% endblock extra_head %} | |
</head> | |
<body {% block extra_body %}{% endblock extra_body %}> | |
{% block body %}{% endblock body %} | |
<!-- Javascript at the bottom for fast page loading --> | |
{% block jquery %} | |
<!-- | |
Wrapped in a block so I can null it out later: | |
Generally this is because of typekit -- if I want to use jQuery to handle webfont post-load hooks, it must be | |
available in HEAD because typekit must happen in head for a bunch of annoying yak-shaving reasons. | |
On templates when I do fancy typekit loading, I manually load jQuery in the typekit block and then override | |
the jquery block to be empty. | |
--> | |
<!-- Grab Google CDN's jQuery. fall back to local if necessary --> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.3/jquery.min.js"></script> | |
<script>!window.jQuery && document.write('<script src="{{ STATIC_URL }}js/jquery-1.4.3.min.js"><\/script>')</script> | |
{% endblock jquery %} | |
<!-- do conditional loading for IE fixes here, like PNG fix --> | |
<!-- load anything else you want to use on all pages --> | |
{% block extra_js %}{% endblock extra_js %}] | |
<!-- google analytics goes here --> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment