[jQuery] Alternative way of reacting to clicked link?
Hi,
I have a page with about 12000 links in it. A few of these links point
to anchors on the same page. A function should be called when those
"intra page" links are clicked.
$("a[@href*=#]").click(...) seems to be too slow for some browsers on
some machines if 12000 links need to be filtered.
I hoped that $(window).click(...) could give me the possibility to
handle the new window.location on-the-fly but unfortunately my bound
function is called before the browser jumps to the anchor, so that
window.location is still outdated.
Does anybody know another way of on-the-fly reacting to a link click
which allows to access the new url?
Thanks in advance,
Alessandro