Hi,
I have a script which adds click event handlers to about 500 elements in the page via JQuery .live or .bind (not decided which yet), and I am having a JQuery performance issue.
With a small dataset, I can load the page and as soon as the page has finished loading according to the browser, I can click on something and off we go. But increase the data set and there is a definite delay between the page load ending and my click being handled, which I can only assume is JQuery still working off attaching the event handlers - the click is handled correctly, so I am assuming it gets queued and then handled.
Is there any way to have JQuery wait for the .live() to finish before moving on, or in other words handle it synchronously rather than asynchronously if that makes sense? This is so I can put a loading screen up before starting the .live() call, and take it down when its done.
Regards Moo