From 24a79b6a2d0fc017ebf07f8cc701b85701aa5031 Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Mon, 22 Dec 2014 18:58:30 +0100 Subject: [PATCH] Start the Stockfish web worker as soon as we get to the init phase. --- www/js/book.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/www/js/book.js b/www/js/book.js index dce293b..7a4d7ee 100644 --- a/www/js/book.js +++ b/www/js/book.js @@ -534,8 +534,10 @@ var init = function() { prev_move(); } }); -} + // Seemingly the web worker is not started before we send it a message. + stockfish.postMessage("uci"); +} $(document).ready(init); -- 2.39.2