Skip to content

Commit

Permalink
feat: add prefetch
Browse files Browse the repository at this point in the history
  • Loading branch information
dewanakl authored Nov 28, 2023
1 parent 0e101fa commit c065b58
Showing 1 changed file with 17 additions and 10 deletions.
27 changes: 17 additions & 10 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,18 @@
<link rel="apple-touch-icon" sizes="192x192" type="image/png" href="https://ulems.my.id/assets/images/icon-192x192.png">
<link rel="icon" type="image/x-icon" href="https://ulems.my.id/favicon.ico">

<!-- Preconnect CDN -->
<!-- Preconnect and preload CDN -->
<link rel="preconnect" href="https://cdn.jsdelivr.net" crossorigin="anonymous">
<link rel="preconnect" href="https://fonts.googleapis.com" crossorigin="anonymous">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>

<link rel="preload" href="https://cdn.jsdelivr.net/npm/[email protected]/normalize.css" integrity="sha256-WAgYcAck1C1/zEl5sBl5cfyhxtLgKGdpI3oKyJffVRI=" crossorigin="anonymous" as="style">
<link rel="preload" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" integrity="sha256-MBffSnbbXwHCuZtgPYiwMQbfE7z+GOZ7fBPCNB06Z98=" crossorigin="anonymous" as="style">
<link rel="preload" href="https://cdn.jsdelivr.net/npm/@fortawesome/[email protected]/css/all.min.css" integrity="sha256-CTSx/A06dm1B063156EVh15m6Y67pAjZZaQc89LLSrU=" crossorigin="anonymous" as="style">
<link rel="preload" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/aos.css" integrity="sha256-GqiEX9BuR1rv5zPU5Vs2qS/NSHl1BJyBcjQYJ6ycwD4=" crossorigin="anonymous" as="style">
<link rel="preload" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha256-gvZPYrsDwbwYJLD5yeBfcNujPhRoGOY831wwbIzz3t0=" crossorigin="anonymous" as="script">
<link rel="preload" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/aos.js" integrity="sha256-pQBbLkFHcP1cy0C8IhoSdxlm0CtcH5yJ2ki9jjgR03c=" crossorigin="anonymous" as="script">
<link rel="preload" href="https://cdn.jsdelivr.net/npm/[email protected]/tsparticles.confetti.bundle.min.js" integrity="sha256-XG5M9shcLLpu8ct5bVbu6lLVzLpfZChl+csxdyLVP18=" crossorigin="anonymous" as="script">

<!-- Dependencies CSS -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/normalize.css" integrity="sha256-WAgYcAck1C1/zEl5sBl5cfyhxtLgKGdpI3oKyJffVRI=" crossorigin="anonymous">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" integrity="sha256-MBffSnbbXwHCuZtgPYiwMQbfE7z+GOZ7fBPCNB06Z98=" crossorigin="anonymous">
Expand Down Expand Up @@ -269,13 +276,13 @@ <h1 class="font-esthetic text-center py-3" data-aos="fade-down" data-aos-duratio

<div class="carousel-inner rounded-4">
<div class="carousel-item active">
<img src="https://picsum.photos/1280/720?random=1" class="d-block w-100" onclick="util.modal(this)">
<img src="https://picsum.photos/1280/720?random=1" alt="gambar 1" class="d-block w-100" onclick="util.modal(this)">
</div>
<div class="carousel-item">
<img src="https://picsum.photos/1280/720?random=2" class="d-block w-100" onclick="util.modal(this)">
<img src="https://picsum.photos/1280/720?random=2" alt="gambar 2" class="d-block w-100" onclick="util.modal(this)">
</div>
<div class="carousel-item">
<img src="https://picsum.photos/1280/720?random=3" class="d-block w-100" onclick="util.modal(this)">
<img src="https://picsum.photos/1280/720?random=3" alt="gambar 3" class="d-block w-100" onclick="util.modal(this)">
</div>
</div>

Expand All @@ -299,13 +306,13 @@ <h1 class="font-esthetic text-center py-3" data-aos="fade-down" data-aos-duratio

<div class="carousel-inner rounded-4">
<div class="carousel-item active">
<img src="https://picsum.photos/1280/720?random=4" class="d-block w-100" onclick="util.modal(this)">
<img src="https://picsum.photos/1280/720?random=4" alt="gambar 4" class="d-block w-100" onclick="util.modal(this)">
</div>
<div class="carousel-item">
<img src="https://picsum.photos/1280/720?random=5" class="d-block w-100" onclick="util.modal(this)">
<img src="https://picsum.photos/1280/720?random=5" alt="gambar 5" class="d-block w-100" onclick="util.modal(this)">
</div>
<div class="carousel-item">
<img src="https://picsum.photos/1280/720?random=6" class="d-block w-100" onclick="util.modal(this)">
<img src="https://picsum.photos/1280/720?random=6" alt="gambar 6" class="d-block w-100" onclick="util.modal(this)">
</div>
</div>

Expand Down Expand Up @@ -416,15 +423,15 @@ <h1 class="font-esthetic text-center mb-3" style="font-size: 3rem;">Ucapan & Doa
<nav class="d-flex justify-content-center mb-0">
<ul class="pagination mb-0">
<li class="page-item disabled" id="previous">
<button class="page-link" onclick="pagination.previous(this)" aria-label="Previous">
<button class="page-link" onclick="pagination.previous(this)" aria-label="Sebelumnya">
<i class="fa-solid fa-circle-left me-1"></i>Sebelumnya
</button>
</li>
<li class="page-item disabled">
<span class="page-link text-light" id="page">1</span>
</li>
<li class="page-item" id="next">
<button class="page-link" onclick="pagination.next(this)" aria-label="Next">
<button class="page-link" onclick="pagination.next(this)" aria-label="Selanjutnya">
Selanjutnya<i class="fa-solid fa-circle-right ms-1"></i>
</button>
</li>
Expand Down

0 comments on commit c065b58

Please sign in to comment.