4 ms·
A few month ago, I used a similar optimisation that does the same idle-awaiting but with server-requests instead of cpu-usage. So instead of submitting all ajax
by code-is-code 8y ago
A few month ago, I used a similar optimisation that does the same idle-awaiting but with server-requests instead of cpu-usage.
So instead of submitting all ajax to the server directly, background tasks can be delayed until the important tasks have finished. This is useful especially when the 6 requests per origin limit gets hit often.
https://github.com/pubkey/custom-idle-queue https://github.com/pubkey/custom-idle-queue