This worke...">

Linking external JS in UIWebView in iOS 5

I am loading an html that includes external JS like this,

<script src = "external.js" />

This worked fine until iOS4.3, but suddenly stopped working in iOS5.0. Based on my understanding, this is due to the fact that UIWebview in iOS 5 now supports html5, which indicates that you should "put" a closing tag instead of relying on "/" (self-closing?), Which we use to put end when there is no content in the tag.

Let me know if my understanding is true?

+2
source share

Source: https://habr.com/ru/post/1380487/


All Articles