Topic selection slow on Codeberg and WebKit #10014

Closed
opened 2025-11-02 08:55:46 -06:00 by GiteaMirror · 2 comments
Owner

Originally created by @tallship on GitHub (Dec 25, 2022).

Description

On sites like codeberg with ~1e4 topics, on several web browsers (we have reports for luakit (webkit-based) and firefox), topic selection becomes impossibly slow as the pop-up box is populated with the 1e4 elements for the topics.

Arguably, this is also a UX issue; nobody would want to scroll through the 1e4 topics, in particular as the order is not (really) predictable for users and prone to change as the popularity of topics changes. Hence: would it be possible to just limit the number of matches from topics/search?

Browser version: luakit 2.3.3

Gitea Version

See https://codeberg.org/

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

(sorry, this would be a video)

Git Version

See https://codeberg.org/

Operating System

Debian Bullseye

How are you running Gitea?

See https://codeberg.org/

Firefox luakit 2.3.3

Database

PostgreSQL

Originally created by @tallship on GitHub (Dec 25, 2022). ### Description On sites like codeberg with ~1e4 topics, on several web browsers (we have reports for luakit (webkit-based) and firefox), topic selection becomes impossibly slow as the pop-up box is populated with the 1e4 elements for the topics. Arguably, this is also a UX issue; nobody would want to scroll through the 1e4 topics, in particular as the order is not (really) predictable for users and prone to change as the popularity of topics changes. Hence: would it be possible to just limit the number of matches from topics/search? Browser version: luakit 2.3.3 ### Gitea Version See https://codeberg.org/ ### Can you reproduce the bug on the Gitea demo site? No ### Log Gist _No response_ ### Screenshots (sorry, this would be a video) ### Git Version See https://codeberg.org/ ### Operating System Debian Bullseye ### How are you running Gitea? See https://codeberg.org/ Firefox luakit 2.3.3 ### Database PostgreSQL
GiteaMirror added the type/bug label 2025-11-02 08:55:46 -06:00
Author
Owner

@fsologureng commented on GitHub (Jan 12, 2023):

Hi, I can confirm this. The ajax request just took ~350ms, so it is a problem in the response handler.

Additionally, maybe the call should be done just once the value in the input has a minimum length.

Originally reported in https://codeberg.org/forgejo/forgejo/issues/132

@fsologureng commented on GitHub (Jan 12, 2023): Hi, I can confirm this. The ajax request just took ~350ms, so it is a problem in the response handler. Additionally, maybe the call should be done just once the value in the input has a minimum length. Originally reported in https://codeberg.org/forgejo/forgejo/issues/132
Author
Owner

@jolheiser commented on GitHub (Jan 12, 2023):

I think a minimal length might be good, a limit to returned topics, and certainly a debounce if there is none already.

@jolheiser commented on GitHub (Jan 12, 2023): I think a minimal length might be good, a limit to returned topics, and certainly a debounce if there is none already.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#10014