The Konilo interpreter execs byte code in a loop. The Javascript VM cannot do anything else while this loop is running unfortunately, so the browser is unresponsive until all bytecode has executed.
The modification below adds an artificial sleep()
function that allows the event loop
to catch its breath and service event handlers (eg: UI clicks, form interaction, unrelated AJAX calls, etc...)
The EVENT_LOOP_PAUSE_TICKS
variable will need to be tuned to find a balance between initial load speed and UI
responsiveness.