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.