Allow skipping the history load by adding a #nohistory fragment to the URL

(e.g. for slow / high latency connections)
This commit is contained in:
Oliver Jowett 2016-10-14 22:09:07 +01:00
parent 8f3b7c8fde
commit c294ac1327

View file

@ -300,7 +300,7 @@ function initialize() {
var CurrentHistoryFetch = null;
var PositionHistoryBuffer = []
function start_load_history() {
if (PositionHistorySize > 0) {
if (PositionHistorySize > 0 && window.location.hash != '#nohistory') {
$("#loader_progress").attr('max',PositionHistorySize);
console.log("Starting to load history (" + PositionHistorySize + " items)");
load_history_item(0);