5 ms·
Good to know - it definitely works best in Safari and Chrome right now (since they have the best-optimized JS implementations). I'm surprised Firefox is hangin
by avibryant 17y ago
Good to know - it definitely works best in Safari and Chrome right now (since they have the best-optimized JS implementations). I'm surprised Firefox is hanging that badly but I'll look into it.
- extension 17y agoThe search filter seems a bit too eager. Type one letter and it tries to enumerate scrillions of methods, which kills Firefox. It's probably the DOM manipulation specifically. Are you adding the results in one big innerHTML assignment? You can also try breaking the search into small chunks with setTimeouts between them.
- avibryant 17y agoThe problem is actually, more or less, building up the search index - this is only an issue the first time you do a particular kind of search, and it's fast after that. This involves parsing all the source code, which is a recursive process, which FF doesn't optimize (whereas Safari and Chrome zip through it much faster).