|
93 | 93 | display: flex; |
94 | 94 | flex-direction: column; |
95 | 95 | gap: 16px; |
| 96 | + min-width: 0; |
96 | 97 | } |
97 | 98 |
|
98 | 99 | .bio-text { |
|
129 | 130 | } |
130 | 131 |
|
131 | 132 | .about-profile-img { |
132 | | - flex: 1; |
| 133 | + flex: 0 0 280px; |
| 134 | + min-width: 280px; |
133 | 135 | display: flex; |
134 | 136 | justify-content: center; |
135 | 137 | } |
|
177 | 179 | .about-profile-img { |
178 | 180 | order: -1; |
179 | 181 | margin-bottom: 6px; |
| 182 | + flex: none; |
| 183 | + min-width: 0; |
180 | 184 | } |
181 | 185 |
|
182 | 186 | .img-border img { |
|
199 | 203 | } |
200 | 204 | </style> |
201 | 205 | <link rel="preload" href="/css/about.css" as="style"> |
202 | | - <link rel="stylesheet" href="/css/about.css" media="print" onload="this.media='all'"> |
203 | | - <noscript><link rel="stylesheet" href="/css/about.css"></noscript> |
| 206 | + <link rel="stylesheet" href="/css/about.css"> |
204 | 207 | </head> |
205 | 208 | <body> |
206 | 209 | <!-- About Page Schema --> |
@@ -579,7 +582,7 @@ <h2><lottie-player src="/images/link.json" background="transparent" speed="1" cl |
579 | 582 |
|
580 | 583 | <div class="about-profile-img"> |
581 | 584 | <div class="img-border"> |
582 | | - <img src="/images/profile.svg" alt="Patrick Araujo profile avatar for backend software engineer and integration specialist" width="250" height="250" decoding="async"> |
| 585 | + <img src="/images/profile.svg" alt="Patrick Araujo profile avatar for backend software engineer and integration specialist" width="250" height="250" loading="eager" fetchpriority="high" decoding="async"> |
583 | 586 | </div> |
584 | 587 | </div> |
585 | 588 | </div> |
@@ -744,35 +747,11 @@ <h2><lottie-player src="/images/link.json" background="transparent" speed="1" cl |
744 | 747 | loadDeferredScript('https://cdn.jsdelivr.net/npm/@lottiefiles/lottie-player@1.5.7/dist/lottie-player.js'); |
745 | 748 | }; |
746 | 749 |
|
747 | | - const scheduleIdleLoad = function() { |
748 | | - if ('requestIdleCallback' in window) { |
749 | | - window.requestIdleCallback(load, { timeout: 3500 }); |
750 | | - } else { |
751 | | - window.setTimeout(load, 3000); |
752 | | - } |
753 | | - }; |
754 | | - |
755 | | - if ('IntersectionObserver' in window) { |
756 | | - const observer = new IntersectionObserver(function(entries) { |
757 | | - if (entries.some(function(entry) { return entry.isIntersecting; })) { |
758 | | - observer.disconnect(); |
759 | | - load(); |
760 | | - } |
761 | | - }, { rootMargin: '200px 0px' }); |
762 | | - |
763 | | - document.querySelectorAll('lottie-player').forEach(function(node) { |
764 | | - observer.observe(node); |
765 | | - }); |
766 | | - |
767 | | - ['scroll', 'pointerdown', 'keydown', 'touchstart'].forEach(function(eventName) { |
768 | | - window.addEventListener(eventName, load, { once: true, passive: true }); |
769 | | - }); |
770 | | - |
771 | | - scheduleIdleLoad(); |
772 | | - return; |
773 | | - } |
| 750 | + ['scroll', 'pointerdown', 'keydown', 'touchstart'].forEach(function(eventName) { |
| 751 | + window.addEventListener(eventName, load, { once: true, passive: true }); |
| 752 | + }); |
774 | 753 |
|
775 | | - scheduleIdleLoad(); |
| 754 | + window.setTimeout(load, 12000); |
776 | 755 | } |
777 | 756 |
|
778 | 757 | function updateFooterYear() { |
@@ -802,6 +781,7 @@ <h2><lottie-player src="/images/link.json" background="transparent" speed="1" cl |
802 | 781 | document.body.classList.add('ready'); |
803 | 782 | updateSemester(); |
804 | 783 | updateFooterYear(); |
| 784 | + document.addEventListener('DOMContentLoaded', updateFooterYear, { once: true }); |
805 | 785 | setupMenu(); |
806 | 786 | setupCursor(); |
807 | 787 | setupContacts(); |
|
0 commit comments