How do I use external libraries?

Question on using custom code https://docs.retool.com/docs/custom-js-code

When i try to add a CDN for external library, and save, i don’t really get a message as shown in the page. like : Added the Papa Parse library from a CDN.

Is there any time gap between when the library is actually available and when it is saved ? and is the absence of confirmation message just a bug ?

For ex. I tried adding https://cdnjs.cloudflare.com/ajax/libs/jsSHA/3.2.0/sha.js and didnt get any confirmation. But i could not find any jsSHA object/function being available after that.

For anyone stuck like me. The function is usable. I ended up using https://cdnjs.cloudflare.com/ajax/libs/crypto-js/4.0.0/crypto-js.min.js and even though the linter shows an error with red underlining, the functions are still accessible

Thank you @victoria for helping out with this

2 Likes