Trying 800ms pre-load delay
This commit is contained in:
		
							parent
							
								
									59c11379b2
								
							
						
					
					
						commit
						448d073bf2
					
				@ -4,7 +4,7 @@ import { Observable, timer, mergeMap, of } from 'rxjs';
 | 
			
		||||
export class AppPreloadingStrategy implements PreloadingStrategy {
 | 
			
		||||
  preload(route: Route, load: Function): Observable<any> {
 | 
			
		||||
      return route.data && route.data.preload 
 | 
			
		||||
          ? timer(150).pipe(mergeMap(() => load()))
 | 
			
		||||
          ? timer(800).pipe(mergeMap(() => load()))
 | 
			
		||||
          : of(null);
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user