Skip to content

Instantly share code, notes, and snippets.

@bstruthers
Created September 5, 2011 18:53
Show Gist options
  • Save bstruthers/1195664 to your computer and use it in GitHub Desktop.
Save bstruthers/1195664 to your computer and use it in GitHub Desktop.
Fixed Google CDN and updated w/ newer Boilerplate code
!!! 5
//[if lt IE 7 ]> <html class="no-js ie6 oldie" lang="en"> <![endif]
//[if IE 7 ]> <html class="no-js ie7 oldie" lang="en"> <![endif]
//[if IE 8 ]> <html class="no-js ie8 oldie" lang="en"> <![endif]
//[if (gte IE 9)|!(IE)]><!--> <html class="no-js" lang="en"> <!--<![endif]
head
meta(charset="utf-8")
meta(http-equiv="X-UA-Compatible", content="IE=edge,chrome=1")
title some Title
meta(name="description", content="")
meta(name="author", content="")
meta(name="viewport", content="width=device-width, initial-scale=1.0")
// Place favicon.ico and apple-touch-icon.png in the root directory: mathiasbynens.be/notes/touch-icons
link(rel="stylesheet", href="css/style.css")
// More ideas for your <head> here: h5bp.com/d/head-Tips
script(src="js/libs/modernizr-2.0.6.min.js")
body
div#container
header
div#main(role="main")
footer
// Grab Google CDN's jQuery, with a protocol relative URL; fall back to local if offline
script(src="//ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.js")
script
window.jQuery || document.write(unescape('%3Cscript src="js/libs/jquery-1.6.2.min.js"%3E%3C/script%3E'))
script(defer, src="js/plugins.js")
script(defer, src="js/script.js")
script
window._gaq = [['_setAccount','UAXXXXXXXX1'],['_trackPageview'], '_trackPageLoadTime']];
Modernizr.load({
load: ('https:' == location.protocol ? '//ssl' : '//www') + '.google-analytics.com/ga.js'
});
// Prompt IE 6 users to install Chrome Frame. Remove this if you want to support IE 6. chromium.org/developers/how-tos/chrome-frame-getting-started
//[if lt IE 7 ]><script src="//ajax.googleapis.com/ajax/libs/chrome-frame/1.0.3/CFInstall.min.js"></script><script>window.attachEvent('onload',function(){CFInstall.check({mode:'overlay'})})</script><![endif]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment