Open Iey4iej3 opened 2 years ago
As per FireMonkey Help: xmlHttpRequest only onload, onerror, onabort, ontimeout
are supported.
There are restrictions in userScripts
context and maintaining a continuous connection between background script, userScripts API & userscript requires additional resources. As onprogress
wasn't commonly used, its support was not included.
These events are used when a userscript deals with downloading.
I searched greasyfork.org
now and 208 out of 64,000 scripts use onprogress
and not all with GM_xmlhttpRequest
.
That is 0.3% if the scripts.
I use the sample code at https://github.com/Tampermonkey/tampermonkey/issues/958#issuecomment-881646563 For sake of completeness, here is the code (slightly modified):
It seems that only is
onload
handler called. In particular,onprogress
is not called (this sample code is aboutPOST
, but the same forGET
).