Rearrange CSS and JS imports for improved speed

This commit is contained in:
Wout Schellaert 2017-06-03 18:41:17 +02:00
parent bd471f58d4
commit cdcc9c026a

View file

@ -18,14 +18,29 @@
<meta property="fb:app_id" content="597670540410704">
<link href="https://cdnjs.cloudflare.com/ajax/libs/Tipue-Search/5.0.0/tipuesearch.css" rel="stylesheet">
<!-- Inline JS -->
<!-- Google Analytics -->
<script>
window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)};ga.l=+new Date;
ga('create', 'UA-25444917-1', 'auto');
ga('send', 'pageview');
</script>
<!-- CSS -->
<!-- Custom CSS -->
<%= asset :css, :main %>
<!-- TiptueSearch CSS -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/Tipue-Search/5.0.0/tipuesearch.css" >
<!-- Font Awesome -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css" integrity="sha384-T8Gy5hrqNKT+hzMclPo118YTQO6cYprQmhrYwIiQ/3axmI1hQomh7Ud2hPOy8SP1" crossorigin="anonymous">
<!-- Animate.css -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.5.2/animate.min.css">
<!-- External JS -->
<!-- Google Analytics -->
<script async src='https://www.google-analytics.com/analytics.js'></script>
<!-- Hotjar Tracking Code for zeus.ugent.be -->
@ -40,15 +55,9 @@
})(window,document,'//static.hotjar.com/c/hotjar-','.js?sv=');
</script>
<%= asset :css, :main %>
<!-- Font Awesome -->
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css" rel="stylesheet" integrity="sha384-T8Gy5hrqNKT+hzMclPo118YTQO6cYprQmhrYwIiQ/3axmI1hQomh7Ud2hPOy8SP1" crossorigin="anonymous">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.5.2/animate.min.css">
<%= content_for(@item, :head) %>
</head>
<body class="site">
<div class="wrapper">
<%= yield %>