--- netmap.js.orig 2015-03-19 15:28:54.943930818 +0100 +++ netmap.js 2015-03-19 15:23:47.541931003 +0100 @@ -18,6 +18,8 @@ // Disable caching for netmap $.ajaxSetup({ cache: false }); + // raise timeout from 20 to 240 sec + $.ajaxSetup({ timeout: 240000 }); document.navNetmapAppSpinner.stop(); --- graph.js.orig 2015-03-19 14:35:23.976932746 +0100 +++ graph.js 2015-03-19 15:27:23.099930874 +0100 @@ -85,6 +85,7 @@ */ loadTraffic: function () { var self = this; + console.log('Start fetching traffic data'); $.getJSON('traffic/layer' + this.get('layer') + '/') .done(function (data) { self.trafficSuccess.call(self, data); @@ -96,6 +97,7 @@ var links = this.get('linkCollection'); + console.log('Traffic data received, processing.'); // Extend the link-objects with traffic data links.each(function (link) { var source = parseInt(link.get('source').id); @@ -114,9 +116,10 @@ }); Backbone.EventBroker.trigger('netmap:updateGraph'); + console.log('Traffic data refreshed'); }, - trafficError: function () { console.log('Failed to fetch traffic'); + trafficError: function (jqXHR,textStatus,errorThrown) { console.log('Failed to fetch traffic: '+textStatus+' / '+errorThrown); // TODO: Meaningful report }