Currently, whenever a feature is chosen, 7 different parts of the page get updated with 7 different Ajax calls. As it is now, and as pointed out here, selecting a new feature doesn't cancel any previous uncompleted Ajax calls. So, with a slow connection, they could end up queueing quite a bit, making it clunky.
I couldn't quickly figure out how to fix this (I'm using jQuery's .load() but I would assume I would need to change that), but I will do it at some point. If anyone wants to tackle this, it would be much appreciated.
In short: I need to cancel any in-progress Ajax calls whenever a new feature is clicked.
Currently, whenever a feature is chosen, 7 different parts of the page get updated with 7 different Ajax calls. As it is now, and as pointed out here, selecting a new feature doesn't cancel any previous uncompleted Ajax calls. So, with a slow connection, they could end up queueing quite a bit, making it clunky.
I couldn't quickly figure out how to fix this (I'm using jQuery's
.load()
but I would assume I would need to change that), but I will do it at some point. If anyone wants to tackle this, it would be much appreciated.In short: I need to cancel any in-progress Ajax calls whenever a new feature is clicked.