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:
parent
8f3b7c8fde
commit
c294ac1327
|
@ -300,7 +300,7 @@ function initialize() {
|
||||||
var CurrentHistoryFetch = null;
|
var CurrentHistoryFetch = null;
|
||||||
var PositionHistoryBuffer = []
|
var PositionHistoryBuffer = []
|
||||||
function start_load_history() {
|
function start_load_history() {
|
||||||
if (PositionHistorySize > 0) {
|
if (PositionHistorySize > 0 && window.location.hash != '#nohistory') {
|
||||||
$("#loader_progress").attr('max',PositionHistorySize);
|
$("#loader_progress").attr('max',PositionHistorySize);
|
||||||
console.log("Starting to load history (" + PositionHistorySize + " items)");
|
console.log("Starting to load history (" + PositionHistorySize + " items)");
|
||||||
load_history_item(0);
|
load_history_item(0);
|
||||||
|
|
Loading…
Reference in a new issue