Skip to content

Commit e8a7207

Browse files
committed
Total Blocking Time reduction
1 parent 1905390 commit e8a7207

2 files changed

Lines changed: 18 additions & 13 deletions

File tree

index.html

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,6 @@
1616
<link rel="preconnect" href="https://cdn.supportfast.ai">
1717
<link rel="preconnect" href="https://www.youtube.com">
1818

19-
<!-- Google tag (gtag.js) -->
20-
21-
<script async src="https://www.googletagmanager.com/gtag/js?id=G-9FWQFZME3Z"></script>
22-
2319
<script type="application/ld+json">
2420
{
2521
"@context": "https://schema.org",
@@ -199,9 +195,7 @@ <h2>What’s Coming Next</h2>
199195
<!-- reCAPTCHA-Protected Google Form -->
200196

201197
<h2> My Latest Upload: </h2>
202-
<div class="yt-placeholder" onclick="loadVideo(this)">
203-
<img src="https://img.youtube.com/vi/99FexhxsXx8/hqdefault.jpg">
204-
</div>
198+
<iframe width="560" height="315" src="https://www.youtube.com/embed/99FexhxsXx8?si=EECWLqH3sD-nJGhr" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>
205199

206200
<h2>Website Building Help Form</h2>
207201

@@ -1136,6 +1130,6 @@ <h2> HellenicDev Updates: </h2>
11361130
<footer style="text-align:center; padding:20px; font-size:14px; color:gray;">
11371131
© 2026 HellenicDev — All projects and content belong to HellenicDev.
11381132
</footer>
1139-
<script src="script.js"></script>
1133+
<script src="script.js" defer></script>
11401134
</body>
11411135
</html>

script.js

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,19 @@
1-
// Google Analytics
2-
window.dataLayer = window.dataLayer || [];
3-
function gtag(){dataLayer.push(arguments);}
4-
gtag('js', new Date());
5-
gtag('config', 'G-9FWQFZME3Z');
1+
setTimeout(() => {
2+
// Load GA library
3+
const s = document.createElement('script');
4+
s.src = "https://www.googletagmanager.com/gtag/js?id=G-9FWQFZME3Z";
5+
s.async = true;
6+
7+
// Initialize GA only after the script has loaded
8+
s.onload = () => {
9+
window.dataLayer = window.dataLayer || [];
10+
function gtag(){dataLayer.push(arguments);}
11+
gtag('js', new Date());
12+
gtag('config', 'G-9FWQFZME3Z');
13+
};
14+
15+
document.head.appendChild(s);
16+
}, 3000); // 3 seconds delay
617

718
// UTM SOURCE DETECT
819
const params = new URLSearchParams(window.location.search);

0 commit comments

Comments
 (0)