From 940b85b09eead4b806b1e3f83b74376f5c89a780 Mon Sep 17 00:00:00 2001 From: Grant Gayed Date: Fri, 5 Feb 2016 13:47:19 -0500 Subject: [PATCH] don't stop generating when error occurs --- catalogLoadTest.html | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/catalogLoadTest.html b/catalogLoadTest.html index 67eace3..f26330a 100644 --- a/catalogLoadTest.html +++ b/catalogLoadTest.html @@ -62,7 +62,10 @@ var cell = row.insertCell(); var text = document.createTextNode("failure: " + XMLHttpRequest.responseText); cell.appendChild(text); - stop(); + + var delay = Math.floor(document.getElementById("delayText").value); + delay = Math.min(Math.max(delay, 1), 100); + setTimeout(callLoad, delay * 1000); } }); }