Timeline for Abort Ajax requests using jQuery
Current License: CC BY-SA 3.0
6 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
S Mar 13, 2022 at 5:58 | history | rollback | Tharindu Kumara |
Rollback to Revision 1 - Edit approval overridden by post owner or moderator
|
|
Dec 10, 2021 at 23:34 | history | suggested | Valerio Bozz | CC BY-SA 4.0 |
removed "it is always best pratices" since it's a buzzword that simply makes you want to put +1 without thinking on. This is just a late answer with a code that has no much sense by itself without further clarifications.
|
Dec 10, 2021 at 8:51 | review | Suggested edits | |||
S Mar 13, 2022 at 5:58 | |||||
Dec 10, 2021 at 8:44 | comment | added | Valerio Bozz |
` var $request; if ($request != null)` Why? Here the code is creating an empty variable and then checking if it's not null without any strict check. What is the educational meaning of this useless check that it's always false? Moreover, this is a late answer that just tells to use abort() (already answered above) but without explaining it in any way. The phrase "It's always best practice to do something like this" is just a positive buzzword that entices inexperienced to vote up. Voted down for that until clarifications or improvements.
|
|
Jul 29, 2015 at 5:02 | comment | added | Zesty | I also check if a request is already running, but I use a boolean, as it's lighter. | |
Oct 15, 2014 at 9:14 | history | answered | Tharindu Kumara | CC BY-SA 3.0 |