As others have mentioned, you'll need some mechanism of maintaining some kind of flag to indicate that the page has been reloaded that persists after reloading.
Common solutions to this would be cookies, url fragments, local storage.
Cookie
if(!(/\breloaded=1/.test(document.cookie))){
document.cookie = 'reloaded=1';
location.reload();
}
URL fragment
if(location.hash != '#reloaded'){
location.hash = '#reloaded';
location.reload();
}
Local Storage
if (localStorage.getItem('reloaded') != false) {
localStorage.setItem('reloaded', false);
location.reload();
}