Languages

Menu
Sites
Language
Loading JS component from external source
Is it possible to load some JS component from external source into Tizen WebApp?

Responses

2 Replies
Armaan-Ul- Islam

Yes, It's possible to load JS from Externel Source.

Just add the external URL in HTML script tag. For example to load external library in Tizen Web app, add this line in Tizen Web App > index.html:

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.0/jquery.min.js"></script>
<script src="https://yourblog.com/yourjs.js"></script>

 

As you need to access Internet and External domain Add 'Internet' privilege and access domain policy in your config.xml file.

For Reference, Check this response.

Phil rzr

Yes I confirm, but it could side effects on offline mode, you'll have to wait a couple of second before the UI is displayed, I tried to hackaround it but still not satisfied with result, check:

https://github.com/tizenteam/mapo