improve page load with async
This commit is contained in:
parent
298802e981
commit
4dfcf1a5a9
@ -11,12 +11,12 @@
|
|||||||
<meta HTTP-EQUIV="CACHE-CONTROL" CONTENT="public">
|
<meta HTTP-EQUIV="CACHE-CONTROL" CONTENT="public">
|
||||||
|
|
||||||
|
|
||||||
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
|
<link rel="stylesheet" async href="https://fonts.googleapis.com/icon?family=Material+Icons">
|
||||||
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700" type="text/css">
|
<link rel="stylesheet" async href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700" type="text/css">
|
||||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.6.3/css/font-awesome.min.css">
|
<link rel="stylesheet" async href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.6.3/css/font-awesome.min.css">
|
||||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.98.2/css/materialize.min.css">
|
<link rel="stylesheet" async href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.98.2/css/materialize.min.css">
|
||||||
<link rel="stylesheet" href="assets/css/main.min.css">
|
<link rel="stylesheet" async href="assets/css/main.min.css">
|
||||||
|
<script src="assets/js/modernizer-webp.js"></script>
|
||||||
<script data-ad-client="ca-pub-5143923140938916" async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
|
<script data-ad-client="ca-pub-5143923140938916" async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
|
||||||
|
|
||||||
|
|
||||||
@ -80,7 +80,6 @@ Information om själva sidan hittar du i "Om oss" rutan på startsidan.
|
|||||||
<script src="assets/js/material.min.js"></script>
|
<script src="assets/js/material.min.js"></script>
|
||||||
<script src="assets/js/loader.min.js"></script>
|
<script src="assets/js/loader.min.js"></script>
|
||||||
<script src="assets/js/softscrollscript.js"></script>
|
<script src="assets/js/softscrollscript.js"></script>
|
||||||
<script src="assets/js/modernizer-webp.js"></script>
|
|
||||||
<script>
|
<script>
|
||||||
if('serviceWorker' in navigator) {
|
if('serviceWorker' in navigator) {
|
||||||
window.addEventListener('load', function() {
|
window.addEventListener('load', function() {
|
||||||
|
@ -19,11 +19,12 @@ echo "
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
<link rel='stylesheet' href='https://fonts.googleapis.com/icon?family=Material+Icons'>
|
<link rel='stylesheet' async href='https://fonts.googleapis.com/icon?family=Material+Icons'>
|
||||||
<link rel='stylesheet' href='https://fonts.googleapis.com/css?family=Roboto:300,400,500,700' type='text/css'>
|
<link rel='stylesheet' async href='https://fonts.googleapis.com/css?family=Roboto:300,400,500,700' type='text/css'>
|
||||||
<link rel='stylesheet' href='https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.6.3/css/font-awesome.min.css'>
|
<link rel='stylesheet' async href='https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.6.3/css/font-awesome.min.css'>
|
||||||
<link rel='stylesheet' href='https://cdnjs.cloudflare.com/ajax/libs/materialize/0.98.2/css/materialize.min.css'>
|
<link rel='stylesheet' async href='https://cdnjs.cloudflare.com/ajax/libs/materialize/0.98.2/css/materialize.min.css'>
|
||||||
<link rel='stylesheet' href='assets/css/main.min.css'>
|
<link rel='stylesheet' async href='assets/css/main.min.css'>
|
||||||
|
<script src='assets/js/modernizer-webp.js'></script>
|
||||||
<script data-ad-client='ca-pub-5143923140938916' async src='https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js'></script>
|
<script data-ad-client='ca-pub-5143923140938916' async src='https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js'></script>
|
||||||
|
|
||||||
|
|
||||||
|
@ -9,7 +9,6 @@ readfile("assets/js/loader.min.js");
|
|||||||
readfile("assets/js/calcscript.js");
|
readfile("assets/js/calcscript.js");
|
||||||
readfile("assets/js/changeall.js");
|
readfile("assets/js/changeall.js");
|
||||||
readfile("assets/js/sparabetyg.js");
|
readfile("assets/js/sparabetyg.js");
|
||||||
readfile("assets/js/modernizer-webp.js");
|
|
||||||
echo "
|
echo "
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
$('select').material_select();
|
$('select').material_select();
|
||||||
|
@ -18,11 +18,12 @@
|
|||||||
<meta name="title" content="Räkna ut ditt meritvärde">
|
<meta name="title" content="Räkna ut ditt meritvärde">
|
||||||
|
|
||||||
|
|
||||||
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
|
<link rel="stylesheet" async href="https://fonts.googleapis.com/icon?family=Material+Icons">
|
||||||
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700" type="text/css">
|
<link rel="stylesheet" async href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700" type="text/css">
|
||||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.6.3/css/font-awesome.min.css">
|
<link rel="stylesheet" async href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.6.3/css/font-awesome.min.css">
|
||||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.98.2/css/materialize.min.css">
|
<link rel="stylesheet" async href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.98.2/css/materialize.min.css">
|
||||||
<link rel="stylesheet" href="assets/css/main.min.css">
|
<link rel="stylesheet" async href="assets/css/main.min.css">
|
||||||
|
<script src="assets/js/modernizer-webp.js"></script>
|
||||||
<script data-ad-client="ca-pub-5143923140938916" async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
|
<script data-ad-client="ca-pub-5143923140938916" async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
|
||||||
|
|
||||||
|
|
||||||
@ -138,7 +139,6 @@ När jag började informera mig om Universiteter, antagningspoäng och meritvär
|
|||||||
<script src="assets/js/material.min.js"></script>
|
<script src="assets/js/material.min.js"></script>
|
||||||
<script src="assets/js/loader.min.js"></script>
|
<script src="assets/js/loader.min.js"></script>
|
||||||
<script src="assets/js/softscrollscript.js"></script>
|
<script src="assets/js/softscrollscript.js"></script>
|
||||||
<script src="assets/js/modernizer-webp.js"></script>
|
|
||||||
<script>
|
<script>
|
||||||
if('serviceWorker' in navigator) {
|
if('serviceWorker' in navigator) {
|
||||||
window.addEventListener('load', function() {
|
window.addEventListener('load', function() {
|
||||||
|
Reference in New Issue
Block a user