UNPKG

@nuxt/scripts

Version:

Load third-party scripts with better performance, privacy and DX in Nuxt Apps.

11 lines (10 loc) 363 B
export interface IdleTimeoutScriptTriggerOptions { /** * The timeout in milliseconds to wait before loading the script. */ timeout: number; } /** * Create a trigger that loads a script after an idle timeout once Nuxt is ready. */ export declare function useScriptTriggerIdleTimeout(options: IdleTimeoutScriptTriggerOptions): Promise<boolean>;