diff options
author | Alon Zakai <alonzakai@gmail.com> | 2014-06-06 13:37:03 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2014-06-06 13:37:36 -0700 |
commit | 949a025d0faaa95b86ced2951cefa33ecbd173aa (patch) | |
tree | 1b849d08804effd974f55cf928f09566b37bcb18 /src/proxyClient.js | |
parent | 459cd6a71c0dd1bcb15eaa69e9ffcab18a69f8dc (diff) |
prefetch gl before running worker
Diffstat (limited to 'src/proxyClient.js')
-rw-r--r-- | src/proxyClient.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/proxyClient.js b/src/proxyClient.js index ff961f9c..62ae2492 100644 --- a/src/proxyClient.js +++ b/src/proxyClient.js @@ -26,6 +26,8 @@ window.requestAnimationFrame = window.requestAnimationFrame || window.mozRequest var worker = new Worker('{{{ filename }}}.js'); +WebGLClient.prefetch(); // XXX not guaranteed to be before worker main() + var workerResponded = false; worker.onmessage = function worker_onmessage(event) { |