Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improved CDN and analytics #1659

Closed
wants to merge 7 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 13 additions & 12 deletions dist/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html class="no-js" lang="">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta http-equiv="x-ua-compatible" content="IE=edge">
<title></title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
Expand All @@ -23,18 +23,19 @@
<p>Hello world! This is HTML5 Boilerplate.</p>

<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
<script>window.jQuery || document.write('<script src="js/vendor/jquery-1.11.2.min.js"><\/script>')</script>
<script src="js/plugins.js"></script>
<script src="js/main.js"></script>

<!-- Google Analytics: change UA-XXXXX-X to be your site's ID. -->
<script>
(function(b,o,i,l,e,r){b.GoogleAnalyticsObject=l;b[l]||(b[l]=
function(){(b[l].q=b[l].q||[]).push(arguments)});b[l].l=+new Date;
e=o.createElement(i);r=o.getElementsByTagName(i)[0];
e.src='//www.google-analytics.com/analytics.js';
r.parentNode.insertBefore(e,r)}(window,document,'script','ga'));
ga('create','UA-XXXXX-X','auto');ga('send','pageview');
function b(o,i,l,r){i=document;l='script';r=i.createElement(l);r.src=o;i.getElementsByTagName(l)[0].parentNode.appendChild(r)}

//here include the fallbacks you want - format: (condition)||b('path/to/local.js')
window.jQuery||b('js/vendor/jquery-1.11.2.min.js');

//below is the google analytics snippet
(function(g,a){g.GoogleAnalyticsObject=a;g[a]||(g[a]=function(){(g[a].q=g[a].q||[]).push(arguments)})
g[a].l=+new Date;b('//www.google-analytics.com/analytics.js')}(window,'ga'));
ga('create', 'UA-XXXX-X','auto');ga('send','pageview')

</script>
<script src="js/plugins.js"></script>
<script src="js/main.js"></script>
</body>
</html>