workbox-navigation-preload

    Review the guide for workbox-navigation-preload.

    Summary

    Methods

    disable

    workbox-navigation-preload.disable()

    If the browser supports Navigation Preload, then this will disable it.

    enable

    workbox-navigation-preload.enable(
      headerValue?: string,
    )

    If the browser supports Navigation Preload, then this will enable it.

    Parameters

    • headerValue

      string optional

    isSupported

    workbox-navigation-preload.isSupported()

    Returns

    • boolean

      Whether or not the current browser supports enabling navigation preload.

    We serve cookies on this site to analyze traffic, remember your preferences, and optimize your experience.