Fix mobile navbar disappearing issue and optimize image loading across all pages
- Fix: Removed undefined checkLite function in ControlsDropdown causing navbar to crash on menu close - Fix: Add justClosedDrawerRef to prevent navbar auto-hide after closing mobile menu - Optimize: Add loading and fetchPriority attributes to all images across components - Optimize: Eagerly load above-the-fold images (gallery first 3, certifications first 1+2 badges) - Optimize: Lazy load below-the-fold images with proper decoding async - Improve: Better LCP performance and bandwidth usage across gallery, projects, and certifications pages
This commit is contained in:
1 parent
b1af4331fe
commit
c228fff265
16 files changed
+646
-485
No files matched your search
@@ -89,9 +89,6 @@ export default function ControlsDropdown() {
|
||||
window.addEventListener('theme-change', handleCustomThemeChange as EventListener);
|
||||
|
||||
return () => {
|
||||
window.removeEventListener('tier-change', checkLite);
|
||||
document.removeEventListener('astro:after-swap', checkLite);
|
||||
document.removeEventListener('astro:page-load', checkLite);
|
||||
if (darkQuery.removeEventListener) {
|
||||
darkQuery.removeEventListener('change', handleSystemThemeChange);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user