How to Improve WKWebKit Loading Time?

Problem: If a page contains a large-sized video, loading time takes too long because WKWebView caches the whole video.

I have a WKWebView that loads elements from a remote server with loadHTMLString().

The problem is; if the page contains a video (which is near all the times, the page contains a large-sized video) the loading takes forever.

Application's network usage goes to the limits of my bandwidth, so probably WKWebKit downloads the whole video from the server before it appears.

This causes the loading indicator to be shown for solid 10 seconds, or a blank background if the indicator is disabled.

Is there a way to improve this?

Is there a way to start the download process of the video when the user presses the play button or show other elements excluding the video while loading the video itself?

How to Improve WKWebKit Loading Time?
 
 
Q