Thank you for this suggestion. I have implemented this function and it now no longer returns the Frame Load Interrupted (error 102).
However, it now renders the documents in the WKWebview with strange characters (binary?) Any suggestions on how to solve that issue?