docs/js/demos/ajax.js
function replaceLoadMoreButton() {
  var text = document.createTextNode('All users loaded');
  var replacement = document.createElement('p');
  replacement.appendChild(text);
  loadMoreButton.parentNode.replaceChild(replacement, loadMoreButton);
}
function replaceLoadMoreButton() {
  var text = document.createTextNode('All users loaded');
  var replacement = document.createElement('p');
  replacement.appendChild(text);
  loadMoreButton.parentNode.replaceChild(replacement, loadMoreButton);
}
function replaceLoadMoreButton ( ) { var text = document . createTextNode ( 'All users loaded' ) ; var replacement = document . createElement ( 'p' ) ; replacement . appendChild ( text ) ; loadMoreButton . parentNode . replaceChild ( replacement , loadMoreButton ) ; }
Remove the load more button so that the user cannot click it again.
Remove the load more button so that the user cannot click it again .