crossorigin, cleanip index, improve performance

This commit is contained in:
Felix Schulze 2019-11-05 20:13:29 +01:00
parent b8e1a27deb
commit 3445f8ad89
3 changed files with 26 additions and 26 deletions

View File

@ -10,11 +10,11 @@
<meta name="author" content="Felix Schulze"> <meta name="author" content="Felix Schulze">
<meta HTTP-EQUIV="CACHE-CONTROL" CONTENT="public"> <meta HTTP-EQUIV="CACHE-CONTROL" CONTENT="public">
<link rel='preconnect' href='https://fonts.gstatic.com'> <link rel='preconnect' href='https://fonts.gstatic.com' crossorigin>
<link rel='preconnect' href='https://adservice.google.com'> <link rel='preconnect' href='https://adservice.google.com' crossorigin>
<link rel='preconnect' href='https://adservice.google.se'> <link rel='preconnect' href='https://adservice.google.se' crossorigin>
<link rel='preconnect' href='https://cdnjs.cloudflare.com'> <link rel='preconnect' href='https://cdnjs.cloudflare.com' crossorigin>
<link rel='preconnect' href='https://pagead2.googlesyndication.com'> <link rel='preconnect' href='https://pagead2.googlesyndication.com' crossorigin>
<script async src="assets/js/modernizer-webp.js"></script> <script async src="assets/js/modernizer-webp.js"></script>
<link rel="stylesheet" async href="assets/css/main.min.css"> <link rel="stylesheet" async href="assets/css/main.min.css">
<link rel='preload' async href='assets/img/background85.webp' as='image' type='image/webp'> <link rel='preload' async href='assets/img/background85.webp' as='image' type='image/webp'>

View File

@ -16,11 +16,11 @@ echo "
<meta property='og:description' content='Beräkna ditt gymnasie meritvärde inför univeritet eller högskola'> <meta property='og:description' content='Beräkna ditt gymnasie meritvärde inför univeritet eller högskola'>
<meta name='title' content='Räkna ut ditt meritvärde'> <meta name='title' content='Räkna ut ditt meritvärde'>
<link rel='preconnect' href='https://fonts.gstatic.com'> <link rel='preconnect' href='https://fonts.gstatic.com' crossorigin>
<link rel='preconnect' href='https://adservice.google.com'> <link rel='preconnect' href='https://adservice.google.com' crossorigin>
<link rel='preconnect' href='https://adservice.google.se'> <link rel='preconnect' href='https://adservice.google.se' crossorigin>
<link rel='preconnect' href='https://cdnjs.cloudflare.com'> <link rel='preconnect' href='https://cdnjs.cloudflare.com' crossorigin>
<link rel='preconnect' href='https://pagead2.googlesyndication.com'> <link rel='preconnect' href='https://pagead2.googlesyndication.com' crossorigin>
<script async src='assets/js/modernizer-webp.js'></script> <script async src='assets/js/modernizer-webp.js'></script>
<link rel='stylesheet' async href='assets/css/main.min.css'> <link rel='stylesheet' async href='assets/css/main.min.css'>
<link rel='preload' async href='assets/img/background85.webp' as='image' type='image/webp'> <link rel='preload' async href='assets/img/background85.webp' as='image' type='image/webp'>

View File

@ -17,20 +17,17 @@
<meta property="og:description" content="Beräkna ditt gymnasie meritvärde inför univeritet eller högskola"> <meta property="og:description" content="Beräkna ditt gymnasie meritvärde inför univeritet eller högskola">
<meta name="title" content="Räkna ut ditt meritvärde"> <meta name="title" content="Räkna ut ditt meritvärde">
<link rel='preconnect' href='https://fonts.gstatic.com'> <link rel='preconnect' href='https://fonts.gstatic.com' crossorigin>
<link rel='preconnect' href='https://adservice.google.com'> <link rel='preconnect' href='https://adservice.google.com' crossorigin>
<link rel='preconnect' href='https://adservice.google.se'> <link rel='preconnect' href='https://adservice.google.se' crossorigin>
<link rel='preconnect' href='https://cdnjs.cloudflare.com'> <link rel='preconnect' href='https://cdnjs.cloudflare.com' crossorigin>
<link rel='preconnect' href='https://pagead2.googlesyndication.com'> <link rel='preconnect' href='https://pagead2.googlesyndication.com' crossorigin>
<script async src="assets/js/modernizer-webp.js"></script> <script async src="assets/js/modernizer-webp.js"></script>
<link rel="stylesheet" async href="assets/css/main.min.css"> <link rel="stylesheet" async href="assets/css/main.min.css">
<link rel='preload' async href='assets/img/background85.webp' as='image' type='image/webp'> <link rel='preload' async href='assets/img/background85.webp' as='image' type='image/webp'>
<link rel="stylesheet" async href="https://fonts.googleapis.com/css?family=Roboto&display=swap"> <link disabled id="test" rel="stylesheet" defer href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.98.2/css/materialize.min.css">
<link rel="stylesheet" defer href="https://fonts.googleapis.com/icon?family=Material+Icons"> <!--<script data-ad-client="ca-pub-5143923140938916" defer src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<link rel="stylesheet" defer href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.6.3/css/font-awesome.min.css"> -->
<link rel="stylesheet" defer href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.98.2/css/materialize.min.css">
<script data-ad-client="ca-pub-5143923140938916" defer src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
@ -140,16 +137,19 @@ När jag började informera mig om Universiteter, antagningspoäng och meritvär
</div> </div>
</header> </header>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script> <script defer src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<script src="assets/js/material.min.js"></script> <script defer src="assets/js/material.min.js"></script>
<script src="assets/js/loader.min.js"></script> <script defer src="assets/js/loader.min.js"></script>
<script src="assets/js/softscrollscript.js"></script> <script defer src="assets/js/softscrollscript.js"></script>
<script> <script defer>
if('serviceWorker' in navigator) { if('serviceWorker' in navigator) {
window.addEventListener('load', function() { window.addEventListener('load', function() {
navigator.serviceWorker.register('/sw.js'); navigator.serviceWorker.register('/sw.js');
}); });
} }
window.addEventListener('load', function() {
$("#test").prop('disabled', false);
});
</script> </script>
</body> </body>
</html> </html>