From b55d3f054ee54e9b42525e0a41b3a0c3f9389389 Mon Sep 17 00:00:00 2001 From: Alex Beregszaszi Date: Tue, 6 Sep 2016 20:06:29 +0100 Subject: [PATCH] Use loadingCompiler event for setVersionText (also display if using worker) --- src/app.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/app.js b/src/app.js index 5f75618275..1bd505602e 100644 --- a/src/app.js +++ b/src/app.js @@ -444,6 +444,10 @@ var run = function () { compiler.compile(); }); + compiler.event.register('loadingCompiler', this, function (url, usingWorker) { + setVersionText(usingWorker ? '(loading using worker)' : '(loading)'); + }); + compiler.event.register('compilerLoaded', this, function (version) { setVersionText(version); compiler.compile(); @@ -472,7 +476,6 @@ var run = function () { } function loadVersion (version) { - setVersionText('(loading)'); queryParams.update({version: version}); if (window.soljsonReleases !== undefined && window.soljsonReleases[version] !== undefined) { version = window.soljsonReleases[version];