From 7dae5d16e1c6fff307f3774c27a153c1b064500c Mon Sep 17 00:00:00 2001 From: shavit Date: Wed, 10 May 2023 21:30:08 -0400 Subject: [PATCH] Throttle scroll event This decreases the amount of function calls when scrolling through the documentation website. --- CHANGELOG.md | 1 + website/homepage/src/docs/template.html | 101 +++++++++++++----------- 2 files changed, 58 insertions(+), 44 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8f09d698747c9..f49108922eb4d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -48,6 +48,7 @@ No changes to highlight. - Fix `gr.Slider` `release` event not triggering on mobile by [@space-nuko](https://github.com/space-nuko) in [PR 4098](https://github.com/gradio-app/gradio/pull/4098) - Removes extraneous `State` component info from the `/info` route by [@abidlabs](https://github.com/freddyaboulton) in [PR 4107](https://github.com/gradio-app/gradio/pull/4107) - Make .then() work even if first event fails by [@aliabid94](https://github.com/aliabid94) in [PR 4115](https://github.com/gradio-app/gradio/pull/4115). +- Scroll event performance by [@shavit](https://github.com/shavit) in [PR 4158](https://github.com/gradio-app/gradio/pull/4158). ## Documentation Changes: diff --git a/website/homepage/src/docs/template.html b/website/homepage/src/docs/template.html index 0cc88ceedca98..ade13c9710eeb 100644 --- a/website/homepage/src/docs/template.html +++ b/website/homepage/src/docs/template.html @@ -445,6 +445,16 @@