Skip to content

Instantly share code, notes, and snippets.

@garethrees
Created January 26, 2012 14:40
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 7 You must be signed in to fork a gist
  • Save garethrees/1683069 to your computer and use it in GitHub Desktop.
Save garethrees/1683069 to your computer and use it in GitHub Desktop.
Boilerplate HTML <head> Section
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<!-- Make a DNS handshake with a foreign domain, so the connection goes faster when the user eventually needs to access it. This works well for loading in assets (like images) from another domain, or a JavaScript library from a CDN. -->
<link rel="dns-prefetch" href="//ajax.googleapis.com" />
<link rel="dns-prefetch" href="//s3.amazonaws.com" />
<!-- Make sure the latest version of IE is used -->
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<!-- Link to Sitemap -->
<link rel="sitemap" type="application/xml" title="Sitemap" href="/sitemap.xml" />
<!-- Main Page Title -->
<title>Jists</title>
<!-- Content Information -->
<meta name="keywords" content="" />
<meta name="description" content="" />
<meta name="author" content="" />
<!-- Canonical URL -->
<link rel="canonical" href="" />
<!-- Mobile viewport optimized: j.mp/bplateviewport -->
<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 -->
<!-- Suppress IE6 Image Toolbar -->
<meta http-equiv="imagetoolbar" content="false" />
<!-- CSS: implied media="all" -->
<%= stylesheet_link_tag "application", :media => "all" %>
<!-- JQuery from Google -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<!-- Load JS (Should be at bottom) -->
<%= javascript_include_tag "application" %>
<!-- HTML5 Shim -->
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<%= csrf_meta_tags %>
</head>
<body>
<%= yield %>
</body>
</html>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<!-- Make a DNS handshake with a foreign domain, so the connection goes faster when the user eventually needs to access it. This works well for loading in assets (like images) from another domain, or a JavaScript library from a CDN. -->
<link rel="dns-prefetch" href="//ajax.googleapis.com" />
<link rel="dns-prefetch" href="//s3.amazonaws.com" />
<!-- Make sure the latest version of IE is used -->
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<!-- Link to Sitemap -->
<link rel="sitemap" type="application/xml" title="Sitemap" href="/sitemap.xml" />
<!-- Main Page Title -->
<title></title>
<!-- Content Information -->
<meta name="keywords" content="" />
<meta name="description" content="" />
<meta name="author" content="" />
<!-- Canonical URL -->
<link rel="canonical" href="" />
<!-- Mobile viewport optimized: j.mp/bplateviewport -->
<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 -->
<!-- Suppress IE6 Image Toolbar -->
<meta http-equiv="imagetoolbar" content="false" />
<!-- CSS: implied media="all" -->
<link rel="stylesheet" href="/stylesheets/normalize.css" />
<!-- JQuery from Google -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<!-- Load JS (Should be at bottom) -->
<script src="/javascripts/application.js"></script>
<!-- HTML5 Shim -->
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
</head>
<body>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment