https://stackoverflow.com/questions/51094841/angular-external-js-library-calling-document-ready Step 1 Check if the external library is available on npm. If so you may be able to import the desired function rather than altering a vendored file. For e