@@ -255,14 +255,19 @@ function trackerInit() {
255255var initTimer = setTimeout ( trackerInit , 3000 ) ;
256256
257257var cache = window . applicationCache ;
258- cache . addEventListener ( 'noupdate' , loadComplete , false ) ;
259- cache . addEventListener ( 'updateready' , loadComplete , false ) ;
260- cache . addEventListener ( 'cached' , loadComplete , false ) ;
261- cache . addEventListener ( 'error' , loadComplete , false ) ;
258+ // TEMPORARILY DISABLED - MJ 2020-08-29
259+ // Application Cache is broken in recent chrome versions/
260+ // Disabling these addEventListener calls at least makes the rest of the page load.
261+ // Unsure what the implications of disabling these are.
262+
263+ //cache.addEventListener('noupdate', loadComplete, false);
264+ //cache.addEventListener('updateready', loadComplete, false);
265+ //cache.addEventListener('cached', loadComplete, false);
266+ //cache.addEventListener('error', loadComplete, false);
262267
263268// if the browser supports progress events, display a loading bar
264- cache . addEventListener ( 'checking' , function ( ) { if ( map && ! force_check_cache ) return ; force_check_cache = false ; clearTimeout ( initTimer ) ; $ ( '#loading .bar,#loading' ) . show ( ) ; $ ( '#loading .complete' ) . css ( { width : 0 } ) ; } , false ) ;
265- cache . addEventListener ( 'progress' , function ( e ) { $ ( '#loading .complete' ) . stop ( true , true ) . animate ( { width : ( 200 / e . total ) * e . loaded } ) ; } , false ) ;
269+ // cache.addEventListener('checking', function() { if(map && !force_check_cache) return; force_check_cache = false; clearTimeout(initTimer); $('#loading .bar,#loading').show(); $('#loading .complete').css({width: 0}); }, false);
270+ // cache.addEventListener('progress', function(e) { $('#loading .complete').stop(true,true).animate({width: (200/e.total)*e.loaded}); }, false);
266271
267272var listScroll ;
268273var GPS_ts = null ;
0 commit comments