zurb / tribute

ES6 Native @mentions
https://zurb.github.io/tribute/example/
MIT License
2.04k stars 304 forks source link

Performance issue and freezes #896

Open jmaris opened 1 year ago

jmaris commented 1 year ago

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/