Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
Now is the time to ask your NetSuite-savvy friends and colleagues to join the NetSuite Support Community! Refer now! Click here to watch and learn more!
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())}
0