There is a page for which data is taken by calling ajax when loading it.
<script> $(document).ready(function () { getItems(adminPageSize, null, false, false); }); function getItems(pageSize, firstKey, isReverse, includePreviousKey) { var userName = getSessionEmail(); var sessionID = getSessionID(); var requestData = createRequest(userName, sessionID, adminPageSize, firstKey, isReverse, includePreviousKey); $.ajax({ url: baseurl + '/admins/list', type: 'POST', data: JSON.stringify(requestData), contentType: "application/json", asynk: false, success: function (data) { var status = data.status; var message = data.errorMessage; if (status == "SUCCESS") { if (isReverse) data.data.reverse(); writeBody(data); } else if (status == "ERROR") { if (validateAuthError(message)) return; showInfo(message, "Error"); } }, error: function (xhr, ajaxOptions, thrownError) { ajaxErrorProcessing(xhr.status); showInfo("unexpected error occurred by accessing to " + hostUrl); } }); } </script>
Go to the page by the link:
<a id="btnAdministra" href="Administrators.html">Administrators</a>
When multiple clicking on the above link occurs several simultaneous requests and the page falls. How can I make the page load only once no matter how many times it is clicked?