Are you finding this is the case in 'all' browsers? (ie 6/7, FF 3.x win/mac, safari mac) or just some?

This won't help resolve the speed issue, but might take a little impact (eliminate freeze) off of it...you could try:

setTimeout(function(){
  // put your listnav load call in here
},50);

I've found an issue that slows performance (to the degree that you mentioned) in some browsers where I'm bindng a .click() handler for the main buttons. I've done a few things to try to track down the root cause, but it doesn't look like anything in the code inside the click handler: it looks like something in the .click() jquery function itself. I have to look at it more carefully.

One would think that maybe it's the number of items in the list that is causing this long loading delay, but in my tests it's not that, it's something about the click binding for the letter list (I've also tried a few delegation models, with no luck).

You may also want to skim this and see if it applies to your case:

http://recursive.ca/hutch/2008/12/30/how-to-destroy-page-rendering-performance-using-just-javascript-and-css/

- Jack


Sam wrote:
I have an index page with 1270 list items being processed by listnav,
and loading the page takes about 15 seconds. Without listnav turned
on, the page loads in less than a second.

Is there a way to speed up the indexing through caching? Or a setting
that would use pre-populated LI classes?




Reply via email to