impressivewebs / CSS3-Click-Chart

Example Code and Support Chart for new CSS Features
https://css3clickchart.com
143 stars 29 forks source link

Fix Queueing of Ajax calls #2

Closed impressivewebs closed 11 years ago

impressivewebs commented 12 years ago

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.

impressivewebs commented 11 years ago

I don't think this is a problem anymore (if ever), so I'm closing.