How to link to 3rd party JavaScript libraries? Is it ok to link directly to online-hosted libraries?

Modified on Mon, 8 Jan, 2018 at 9:10 AM

Linking to online-hosted libraries is not recommended, as there is always a possibility that the device will be offline and linked libraries won’t be loaded. To link to local JavaScript code, use a meta tag:


<script type="text/javascript" src="path/jquery-1.7.1.min.js"></script>

<!-- Copyright (c) 2018 The Interact Technology Group.
THE CODE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
All rights reserved. -->



Note that all the files need to be inside ‘content’ folder, which acts as a root folder of the asset.

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article