|
@@ -29,16 +29,16 @@ function FormatURI(URI $uri, $base=""){
|
|
|
</title>
|
|
|
<meta charset="UTF-8">
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0"/>
|
|
|
- <link href="/css/style.css?t=<?= filemtime("css/style.css") ?>" rel="stylesheet" />
|
|
|
- <link href="/css/style-med.css?t=<?= filemtime("css/style-med.css") ?>" media="(max-width:1023px)" rel="stylesheet" />
|
|
|
- <link href="/css/style-small.css?t=<?= filemtime("css/style-small.css") ?>" media="(max-width:680px)" rel="stylesheet" />
|
|
|
+ <link href="/css/style.css?t=<?= filemtime("css/style.css") ?>" rel="stylesheet" defer />
|
|
|
+ <link href="/css/style-med.css?t=<?= filemtime("css/style-med.css") ?>" media="(max-width:1023px)" rel="stylesheet" defer />
|
|
|
+ <link href="/css/style-small.css?t=<?= filemtime("css/style-small.css") ?>" media="(max-width:680px)" rel="stylesheet" defer />
|
|
|
<?php foreach ($this->GetCSSFiles() as $css){
|
|
|
echo '<link href="';
|
|
|
if (strpos($css, "http")===false)
|
|
|
echo '/css/',$css,'?t=', filemtime('css/'.$css);
|
|
|
else
|
|
|
echo $css;
|
|
|
- echo '" rel="stylesheet" />';
|
|
|
+ echo '" rel="stylesheet" defer />';
|
|
|
}?>
|
|
|
<style type="text/css">
|
|
|
{@CSS}
|
|
@@ -49,17 +49,17 @@ function FormatURI(URI $uri, $base=""){
|
|
|
<style media="(max-width:680px)">
|
|
|
{@CSSSmall}
|
|
|
</style>
|
|
|
- <script src="//<?=$angularSource?>/<?=$angularVersion?>/angular.min.js"></script>
|
|
|
- <script src="//<?=$angularSource?>/<?=$angularVersion?>/angular-animate.min.js"></script>
|
|
|
- <script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
|
|
|
- <script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.11.2/jquery-ui.min.js"></script>
|
|
|
+ <script src="//<?=$angularSource?>/<?=$angularVersion?>/angular.min.js" defer></script>
|
|
|
+ <script src="//<?=$angularSource?>/<?=$angularVersion?>/angular-animate.min.js" defer></script>
|
|
|
+ <script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js" defer></script>
|
|
|
+ <script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.11.2/jquery-ui.min.js" defer></script>
|
|
|
<?php foreach ($this->GetJSFiles() as $js){
|
|
|
echo '<script src="';
|
|
|
if (strpos($js, "http")===false)
|
|
|
echo '/scripts/',$js,'?t=', filemtime('scripts/'.$js);
|
|
|
else
|
|
|
echo $js;
|
|
|
- echo '"></script>';
|
|
|
+ echo '" defer></script>';
|
|
|
}?>
|
|
|
<script type="text/javascript">
|
|
|
{@JavaScript}
|