tribute icon indicating copy to clipboard operation
tribute copied to clipboard

Performance issue and freezes

Open jmaris opened this issue 1 year ago • 0 comments

How can we reproduce this bug?

  1. Write a function to search a large dataset
  2. Set up tribute to get data from that function
  3. Despite the function completing quickly, the more letters i type in the search, the slower tribute becomes until it freezes.

What did you expect to happen? The browser should not freeze

What happened instead? The Browser froze

Apologies if this is just terrible code on my part,

Link (jsfiddle/plunkr/codepen) or Screenshot: Code is here, type '@import' and space to trigger the suggestions, then try typing 'electronic communications'. Notice that at first results are resolved rapidly, but as the search term gets longer, the browser begins to freeze.

https://jmaris.me/eurlex/

jmaris avatar Jun 23 '23 14:06 jmaris