Code Search page crashes when loading HighlightJS Styling #2567

Closed
opened 2025-11-02 04:40:42 -06:00 by GiteaMirror · 2 comments
Owner

Originally created by @tankerkiller125 on GitHub (Nov 24, 2018).

  • Gitea version (or commit ref):
    • 1.6.0
  • Git version:
  • Operating system:
    • Server Linux (Server Ubuntu 16.04)
    • Client - Linux (ElementaryOS 5.0, Firefox Developer Edition 64.0b11)
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant
  • Log gist:
    Not Applicable

Description

When I use Code search in a decent size repo the first page will display and work fine, however on the second page the browser will hang and inform me that a script on the page is "taking a long time" I have been able to narrow this down to the HighlightJS script but I'm not sure why its happening.
...

Screenshots

screenshot from 2018-11-24 02 42 03

Originally created by @tankerkiller125 on GitHub (Nov 24, 2018). - Gitea version (or commit ref): - 1.6.0 - Git version: - Operating system: - Server Linux (Server Ubuntu 16.04) - Client - Linux (ElementaryOS 5.0, Firefox Developer Edition 64.0b11) - Database (use `[x]`): - [ ] PostgreSQL - [x] MySQL - [ ] MSSQL - [ ] SQLite - Can you reproduce the bug at https://try.gitea.io: - [ ] Yes (provide example URL) - [X] No - [ ] Not relevant - Log gist: Not Applicable ## Description When I use Code search in a decent size repo the first page will display and work fine, however on the second page the browser will hang and inform me that a script on the page is "taking a long time" I have been able to narrow this down to the HighlightJS script but I'm not sure why its happening. ... ## Screenshots ![screenshot from 2018-11-24 02 42 03](https://user-images.githubusercontent.com/3457368/48965827-b1ad7a00-ef92-11e8-944c-b9ef3af2b475.png)
GiteaMirror added the issue/staletype/bug labels 2025-11-02 04:40:42 -06:00
Author
Owner

@stale[bot] commented on GitHub (Jan 23, 2019):

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions.

@stale[bot] commented on GitHub (Jan 23, 2019): This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions.
Author
Owner

@tankerkiller125 commented on GitHub (Jan 23, 2019):

I have double checked to see if this issue exist in 1.7.0 and I can happily say that it has been fixed (I think pagination was introduced?)

@tankerkiller125 commented on GitHub (Jan 23, 2019): I have double checked to see if this issue exist in 1.7.0 and I can happily say that it has been fixed (I think pagination was introduced?)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#2567