I'm writing a simple RSS reader for iOS using Xcode 8 and building for iOS 10.0.
I allow the user to save webpages for offline reading; however, when there is no internet connection, local HTML files take a long time to load as the UIWebView I'm loading them with tries to resolve external assets like images etc (or at least, that's what I think it's doing). I figured disabling JS when an internet connection is not present would solve this problem, but I don't know how to do that and I haven't found much information on the matter.
tl,dr: is there a way to disable javascript in a UIWebView?
Thank you