WKWebView

extension WKWebView: WarmableURL
  • Warms up only the WKWebView and its engine. But it does not prefetch a requests…

    Declaration

    Swift

    public func warmUp()
  • Warms up the WKWebView, its engine, and prefetches the requested URL using a URLRequest with a GET HTTP Request.

    Declaration

    Swift

    public func warmUp(with url: URL)

    Parameters

    url

    a valid URL to prefetch

  • Warms up the WKWebView, its engine, and prefetches the URLRequest

    Declaration

    Swift

    public func warmUp(with urlRequest: URLRequest)

    Parameters

    urlRequest

    a valid URL Request to prefetch