]> git.sesse.net Git - remoteglot/blobdiff - www/js/remoteglot.js
Do not show the board before we have an initial load.
[remoteglot] / www / js / remoteglot.js
index 3a95204e20bc7692a38d2fb3fdc36ed5b7e61eab..d102ad027e351c10c417ce237615eebaa1a7ac4e 100644 (file)
@@ -302,6 +302,7 @@ var request_update = function() {
                        current_analysis_request_timer = setTimeout(function() { request_update(); }, timeout);
                }
        }).fail(function(jqXHR, textStatus, errorThrown) {
+               document.body.style.opacity = null;
                if (textStatus === "abort") {
                        // Aborted because we are switching backends. Abandon and don't retry,
                        // because another one is already started for us.
@@ -1028,6 +1029,8 @@ var patch_move = function(move) {
 /** Update all the HTML on the page, based on current global state.
  */
 var update_board = function() {
+       document.body.style.opacity = null;
+
        var data = displayed_analysis_data || current_analysis_data;
        var current_data = current_analysis_data;  // Convenience alias.