import { PreloadingStrategy, Route } from '@angular/router'; import { Observable } from 'rxjs'; export class CustomPreloadingStrategy implements PreloadingStrategy { preload(route: Route, fn: () => Observable): Observable { //return Observable.of(true).delay(7000).flatMap(_ => fn()); if (true) { return fn(); } } }