Including external js into clientlibrary | Community
Skip to main content
MohitKumarK
Level 3
November 17, 2021
Solved

Including external js into clientlibrary

  • November 17, 2021
  • 2 replies
  • 817 views

Hi,

 

For us there is a 3rd party js needed to work on our site. Is there any option to include 3rd party js in our clientlibrary.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Asutosh_Jena_

Hi @mohitkumark 

 

You can include the 3rd party JS in the same way how you include your regular JS file.

 

  1. Just download the 3rd party JS and put in a file.
  2. Include the file in the js.txt where you have your other JS files included such as bootstrap.js and jquery.js
  3. Make sure to load this JS file before any of your custom JS files are loaded.

Hope this helps!

 

Thanks!

 

2 replies

Siva_Sogalapalli
Community Advisor
Community Advisor
November 17, 2021
Asutosh_Jena_
Community Advisor
Asutosh_Jena_Community AdvisorAccepted solution
Community Advisor
November 17, 2021

Hi @mohitkumark 

 

You can include the 3rd party JS in the same way how you include your regular JS file.

 

  1. Just download the 3rd party JS and put in a file.
  2. Include the file in the js.txt where you have your other JS files included such as bootstrap.js and jquery.js
  3. Make sure to load this JS file before any of your custom JS files are loaded.

Hope this helps!

 

Thanks!