diff --git a/public/home/home.js b/public/home/home.js index f7b9ee091..413b7f3b6 100755 --- a/public/home/home.js +++ b/public/home/home.js @@ -81,8 +81,12 @@ var isZh = true; if(lang != null && lang.nodeValue =="en-US" ){ isZh=false; } - +var readystat = false; document.onreadystatechange = function () { + if(readystat){ + return; + } + readystat = true; console.log("Start to open WebSocket."); queryRecommendData();