ajaxorg/ace — comment on commit 9ab8d986cdbe799a7251254bf29b229dc12c6955
File:  line 0
By nightwing:

>since it is not fired when the window is not focused/visible.

isn't it actually desired behaviour?

if in some applications drawing into background window is desirable
some other it's better to use special parameter to RenderLoop for that

also in combination with 738e7c1a0be14a6a8afaed9faf254a80de672e34
this breaks if several editors are created simultaneously causing issues like #492

because setTimeoutZero with postMessage is bound incorrectly

imo the best solution would be to return requestAnimationFrame and fallback to setTimeout if not avaliable

the postMessage just wastes cpu by drawing with >60fps framerate,
while browser and os itself uses 60fps only

so setTimeout(callback, 15) is more than enough