Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

The 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.



The 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).




Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: