UNPKG

@hotwired/turbo

Version:

The speed of a single-page web application without having to write any JavaScript

25 lines (24 loc) 618 B
export interface PageObserverDelegate { pageBecameInteractive(): void; pageLoaded(): void; pageWillUnload(): void; } export declare enum PageStage { initial = 0, loading = 1, interactive = 2, complete = 3 } export declare class PageObserver { readonly delegate: PageObserverDelegate; stage: PageStage; started: boolean; constructor(delegate: PageObserverDelegate); start(): void; stop(): void; interpretReadyState: () => void; pageIsInteractive(): void; pageIsComplete(): void; pageWillUnload: () => void; get readyState(): DocumentReadyState; }