Optimized site loading speed.

This commit is contained in:
Oleg Sh
2025-05-25 15:33:23 +02:00
parent a143b014a2
commit 9494cb6bdf
18 changed files with 149 additions and 85 deletions

View File

@@ -8,7 +8,7 @@
-->
<link rel="stylesheet" type="text/css" href="<?= Root('i/css/jquery.feedback_me.css')?>" />
<script src="<?= Root('i/js/dev/jquery-ui.js')?>"></script>
<script src="<?= Root('i/js/dev/jquery-ui.min.js')?>"></script>
<script src="<?= Root('i/js/dev/jquery.feedback_me.js')?>"></script>
<script src="<?= Root("script/example.js")?>" ></script>

View File

@@ -8,7 +8,7 @@
<meta http-equiv="cleartype" content="on">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src="<?= Root("i/js/dev/jquery-2.0.3.js")?>" ></script>
<script src="<?= Root("i/js/dev/jquery-2.0.3.min.js")?>" ></script>
<link rel="stylesheet" type="text/css" href="<?= Root('i/css/dev/funcs.css')?>" />
<link rel="stylesheet" type="text/css" href="<?= Root('i/css/dev/bootstrap3/bootstrap.css')?>" />

View File

@@ -111,32 +111,4 @@
</section>
<? endif; ?>
<? if (L('current_language') == "ru"): ?>
<section style="height:90px;text-align: center;" id="info" class="hidden-phone">
<!-- Yandex.RTB R-A-202319-1 -->
<!--
<div style="text-align:center;">
<div id="yandex_rtb_R-A-202319-1" style="display: inline-block;"></div>
</div>
<script type="text/javascript">
(function(w, d, n, s, t) {
w[n] = w[n] || [];
w[n].push(function() {
Ya.Context.AdvManager.render({
blockId: "R-A-202319-1",
renderTo: "yandex_rtb_R-A-202319-1",
async: true
});
});
t = d.getElementsByTagName("script")[0];
s = d.createElement("script");
s.type = "text/javascript";
s.src = "//an.yandex.ru/system/context.js";
s.async = true;
t.parentNode.insertBefore(s, t);
})(this, this.document, "yandexContextAsyncCallbacks");
</script>
-->
</section>
<? endif; ?>

View File

@@ -1,4 +1,4 @@
<head>
<script type="text/javascript" src="<?= Root('i/js/dev/jquery-2.0.3.js')?>"></script>
<script type="text/javascript" src="<?= Root('i/js/dev/jquery-2.0.3.min.js')?>"></script>
<script type="text/javascript" src="<?= Root('i/js/dev/jquery.browser.js')?>"></script>
</head>

View File

@@ -6,16 +6,11 @@
<link rel="stylesheet" type="text/css" href="<?= Root('i/css/jquery.feedback_me.css')?>" />
<script src="<?= Root('i/js/dev/jquery-ui.js')?>"></script>
<script src="<?= Root('i/js/dev/jquery.feedback_me.js')?>"></script>
<script src="<?= Root('i/js/dev/jquery-ui.min.js')?>"></script>
<!-- No feedback supported for now <script src="<?= Root('i/js/dev/jquery.feedback_me.js')?>"></script> -->
<script src="<?= RootCacheJS("script/shared/config.js")?>" ></script>
<script src="<?= RootCacheJS("script/shared/loader.js")?>" ></script>
<!-- Yandex.RTB -->
<script>window.yaContextCb=window.yaContextCb||[]</script>
<script src="https://yandex.ru/ads/system/context.js" async></script>
</head>
<h1 style="display:inline;" id="h1Header"><?= L('title_notg')?></h1>
@@ -295,17 +290,10 @@
<?php elseif (L('current_language') == "ru" && false): ?>
<section id="bottom_adv">
<section style="height:50px;text-align: center;" id="bottom_info" class="hidden-phone">
<!-- Yandex.RTB R-A-202319-2 -->
<div id="yandex_rtb_R-A-202319-2"></div>
<script>window.yaContextCb.push(()=>{
Ya.Context.AdvManager.render({
renderTo: 'yandex_rtb_R-A-202319-2',
blockId: 'R-A-202319-2'
})
})</script>
</section>
</section>
</section>
<!--
<section style="height:32px;text-align: center;" id="bottom_info" class="hidden-phone">
@@ -317,34 +305,6 @@
</div>
</a>
-->
<!-- Yandex.RTB R-A-202319-1 -->
<!--
<div style="text-align:center;">
<div id="yandex_rtb_R-A-202319-1" style="display: inline-block;"></div>
</div>
<script type="text/javascript">
(function(w, d, n, s, t) {
w[n] = w[n] || [];
w[n].push(function() {
Ya.Context.AdvManager.render({
blockId: "R-A-202319-1",
renderTo: "yandex_rtb_R-A-202319-1",
async: true
});
});
t = d.getElementsByTagName("script")[0];
s = d.createElement("script");
s.type = "text/javascript";
s.src = "//an.yandex.ru/system/context.js";
s.async = true;
t.parentNode.insertBefore(s, t);
})(this, this.document, "yandexContextAsyncCallbacks");
</script>
-->
<!--
</section>
-->
<?php else: ?>
<section style="height:32px;text-align: center;" id="bottom_info" class="hidden-phone">
<a class="ProgresssBarLink" href="mailto:admin@graphonline.ru" target="_blank">

View File

@@ -19,7 +19,7 @@
<link rel="stylesheet" type="text/css" href="<?= Root('i/css/dev/funcs.css')?>" />
<script src="<?= Root("i/js/dev/jquery-2.0.3.js")?>" ></script>
<script src="<?= Root("i/js/dev/jquery-2.0.3.min.js")?>" ></script>
<!-- <?php /*IncludeCom('dev/jquery')*/?> -->
<?php IncludeCom('dev/font_ptsans')?>
@@ -78,14 +78,14 @@
<?php endforeach?>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" role="button" id="id_menu_lang" data-bs-toggle="dropdown" aria-expanded="false">
<img src="<?= Root("i/image/flags/enru.png")?>" alt="<?= L('lang')?> icon"> <?= L('lang')?> <span class="caret"></span>
<span class="bi bi-globe"></span> <?= L('lang')?> <span class="caret"></span>
</a>
<ul class="dropdown-menu" aria-labelledby="id_menu_lang">
<?php foreach($g_arrLangs as $lang => $langInfo):?>
<?php if (!array_key_exists('hidden', $langInfo) || !$langInfo["hidden"]):?>
<li>
<a href="<?= ChangeLang($lang, GetCurUrl())?>" title="<?= $langInfo["name"]?>" class="<?= $lang == LANG ? "selected" : ""?> dropdown-item">
<img src="<?= Root("i/image/flags/{$lang}.png")?>" alt="<?= $langInfo["name"]?>"> <?= $langInfo["name"]?>
<img id="flag_<?= $lang?>" src="/i/image/1px.png" width="30" height="22"> <?= $langInfo["name"]?>
</a>
</li>
<?php endif?>