Discussions
SuiteWorld is the largest annual gathering of the NetSuite community! It will be held in Las Vegas on October 6-9, 2025. Our customers and partners look forward to SuiteWorld every year as a place to hear the latest from NetSuite, get hands-on learning, and connect with each other. Register now!
Adding third-party JavaScript Library to SCA site?? [https://github.com/vimeo/player.js]
Hi
I had an issue while adding Vimeo player.js to control the functionality of Vimeo player in SCA website. Following the instructions on SCA Dev Portal,
Add a jQuery Plugin or Third-Party JavaScript Library to Your Site
The directory structure, ns.package.json and distro.json are updated. The key aspect of this is the AMD compatability. When I check the player.js code, it looks for the condition to check if the module is AMD compatable or not.
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e.Vimeo=e.Vimeo||{},e.Vimeo.Player=t())}