Comments (5)
worksforme.
Here's the deal. If you set async
to false
then the method Request.send
is blocked by line 199 because you asked that it should (remember the async
false?).
Since send
is blocked and eventually fires the events (e.g. onSuccess
) and then sets up the delay, but by then send is all done and the request has already finished.
Re-open if you have another problem.
from mootools-core.
I don't have the permission to reopen.
It's OK that Request.send is blocking with async=false.
But it doesn't make any sense to me to trigger the timeout delay if i already know that the request definitely has already been finished.
So one option is to remove timeout handling completely (what i suggested) or to start the delay right before send.
from mootools-core.
Ah I see what you mean, but I think the options are mutually exclusive. You either do async: false
or you do timeout: 1000
.
If you do async: false
the XHR transport will rely on server timeout or browser set timeout (internal to the transport, or perhaps a blocking protection which will prompt user to kill the javascript that is blocking) to return execution to the script.
I've reopened this issue as a documentation issue. Do you agree?
from mootools-core.
@arian @cpojer, we could still reduce headaches if we do as @kguelzau mentioned. To add an else if
. If you guys agree with my last comment, I don't see a problem of adding that else if
on this line.
from mootools-core.
√
from mootools-core.
Related Issues (20)
- Request/Request.HTML execute non-javascript <script> tags as Javascript HOT 1
- Update Array.prototype.flatten to match TC39 proposal HOT 13
- Deprecate MooTools? HOT 9
- creating 404 error for video preroll ad on adding just library. HOT 8
- Change this repo title to HTTPS HOT 7
- Conflict with ecmascript Map HOT 2
- Mootools + Google Maps V3 conflict issue causing google streetview not working. HOT 9
- Object.merge deletes EcmaScript Map Object HOT 4
- MooTools library conflicting with new Event(typeArg) HOT 3
- NS_ERROR_FAILURE XMLHttpRequest exception HOT 9
- Mootools.net down HOT 8
- [spam]
- [SPAM]
- Mootools + Google adsense
- GHSL-2020-345: seeking security contact for your project
- Digital Marketing Course
- spam
- node modules error HOT 3
- mootools.net down HOT 2
- Joomla 3. Recaptcha v2 always spin. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mootools-core.