WKWebView crashing with javascript

Created an app to view HTML sites (HTML, JS, CSS) from local files using loadFileURL. It was working fine in iOS12 but now is crashing in iOS13. If I remove JS files the app no longer crashes. I tested to see if the specific file was an issue but if I remove any one of the larger JS files the app no longer crashes but of course does not run currently. Connecting to the site via http on the network does not crash mobile safari. Is there a limit to the local load now?