Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

Including external js into clientlibrary

MohitKumarK
Level 4
Level 4

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.

1 Accepted Solution
Asutosh_Jena_
Correct answer by
Community Advisor
Community Advisor

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!

 

View solution in original post

2 Replies
Asutosh_Jena_
Correct answer by
Community Advisor
Community Advisor

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!

 

View solution in original post