Skip to content

Commit

Permalink
Lazy load portrait
Browse files Browse the repository at this point in the history
  • Loading branch information
kubgus committed Aug 14, 2024
1 parent 143079f commit 8ee26f8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/portrait-container.astro
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
<div id="portrait-container">
<img src="/images/linkedin-portrait.jpg" alt="Portrait" id="portrait" />
<img src="/images/linkedin-portrait.jpg" alt="" id="portrait" loading="lazy" />
</div>

<style>
#portrait {
width: clamp(120px, 15vw, 140px);
height: clamp(120px, 15vw, 140px);
background-color: var(--secondary-background-dark);

border: 4px solid var(--primary-accent-dark);
border-radius: 50%;
Expand Down

0 comments on commit 8ee26f8

Please sign in to comment.