     private var hasRenderedReadabilityHTML = false
     private let conversionTime: ReadabilityConversionTime
     private let suppressSubresourceLoadingDuringConversion: Bool
+    private var allowNavigationFailures = 0
     
     public init(url: URL, conversionTime: ReadabilityConversionTime = .atDocumentEnd, suppressSubresourceLoadingDuringConversion: Bool = false, completionHandler: @escaping (_ content: String?, _ error: Error?) -> Void) {
         

    }
    
    public func webView(_ webView: WKWebView, didFail navigation: WKNavigation!, withError error: Error) {
        completionHandler(nil, error)
    }
}



        }
        
        if conversionTime == .atDocumentEnd {
            allowNavigationFailures += 1
            webView.stopLoading()
            rawPageFinishedLoading()
        }
