4 ms·
The script hangs and freezes in my browser, even on the tutorial page. I get the wait/stop script prompt every time I reload it. I'm using Firefox 3/Ubuntu.
by jdp 17y ago
The script hangs and freezes in my browser, even on the tutorial page. I get the wait/stop script prompt every time I reload it. I'm using Firefox 3/Ubuntu.
- avibryant 17y agoGood 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).