From ece36e4049817971cc57faec09581ac74061329b Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 24 Oct 2025 18:18:52 +0000 Subject: [PATCH 1/3] Initial plan From 979dc2c4ade36acef1e9290488e5008938cd31b4 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 24 Oct 2025 18:29:18 +0000 Subject: [PATCH 2/3] Optimize scroll handler, fonts loading, and image lazy loading Co-authored-by: adrianmg <589285+adrianmg@users.noreply.github.com> --- _includes/head.html | 6 +++--- _includes/home-work.html | 8 ++++---- assets/js/s.js | 23 +++++++++++++++++++---- 3 files changed, 26 insertions(+), 11 deletions(-) diff --git a/_includes/head.html b/_includes/head.html index be1b0a9..bbcee67 100644 --- a/_includes/head.html +++ b/_includes/head.html @@ -18,11 +18,11 @@ - - + - + + diff --git a/_includes/home-work.html b/_includes/home-work.html index 7d74953..571f6d4 100644 --- a/_includes/home-work.html +++ b/_includes/home-work.html @@ -14,13 +14,13 @@

Lead & Design Manager (2018 – 2020)

Adrián Mato - Azure Pipelines
-
Adrián Mato - Azure Pipelines
-
Adrián Mato - Azure Pipelines
-
Adrián Mato - Azure Pipelines
@@ -35,7 +35,7 @@

Sr. Product Designer (2015 – 2018)

and more available on mobile, tablet and desktop.

-
Adrián Mato - Yammer Office 365
inThrottle = false, limit); + } + } + } + // scrolling event with throttling function scrollHandler() { - // scroll hint - let scroll = document.scrollingElement.scrollTop; + // cache scroll value to avoid repeated DOM access + const scroll = document.scrollingElement.scrollTop; // hide arrow when needed if (scroll >= arrowTreshold && arrow) { @@ -32,6 +44,9 @@ } } + // throttle scroll handler to run at most every 100ms + document.addEventListener("scroll", throttle(scrollHandler, 100)); + // initialize scroll hint showScrollHint(3); } From c67e8daf5e4787c3afa3ea8a6ade9d3bc5a9c7b5 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 24 Oct 2025 18:33:34 +0000 Subject: [PATCH 3/3] Modernize throttle function to use rest parameters Co-authored-by: adrianmg <589285+adrianmg@users.noreply.github.com> --- assets/js/s.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/assets/js/s.js b/assets/js/s.js index 49dd03e..b0a83e0 100644 --- a/assets/js/s.js +++ b/assets/js/s.js @@ -22,11 +22,9 @@ // throttle function to limit scroll handler execution function throttle(func, limit) { let inThrottle; - return function() { - const args = arguments; - const context = this; + return function(...args) { if (!inThrottle) { - func.apply(context, args); + func.apply(this, args); inThrottle = true; setTimeout(() => inThrottle = false, limit); }