Prevent multiple simultaneous requests to the server

moshe weitzman - February 6, 2008 - 19:18
Project:Live
Version:5.x-1.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:active
Description

We are having a situation on groups.drupal.org right now where the server is clearly slow. So when I composing a comment, I can actually see 4 throbbers waiting on replies. Ideally, we would not issue any new live preview ajax request if one is pending. If Jquery does not have a native way to do this, we could just set a property in the DOM whenever we make a request and remove it upon completion. Add a check to this property before creating an ajax request and we've fixed this buglet.

#1

Gurpartap Singh - June 28, 2008 - 19:04

I confirm that it used to happen when the throbbers were there, but since it got replaced by Loading... bar, you can't really make out if the requests are getting queued. Do you still think it happens. I could myself take a look into the module, but the maximum time I could take out for contributions out of my SoC time is kind of over :P

 
 

Drupal is a registered trademark of Dries Buytaert.