diff --git a/README.md b/README.md index 2b74c26..df6952d 100644 --- a/README.md +++ b/README.md @@ -27,27 +27,7 @@ You can check how our SDK can be used in the web app by checking [example app][e This SDK can be used to track installs, sessions and events. Simply add the Adjust Web SDK to your web app. -Our sdk is exposed under all module definitions, so it works under CommonJS and AMD environments and is also available through global `Adjust` when loaded through CDN. - -To lazy load the Adjust Web SDK through CDN paste the following snippet into the `` tag: -```html - -``` - -The Adjust Web SDK should be loaded only once per page and it should be initiated once per page load. - -When loading the sdk through CDN we suggest using minified version. You can target specific version like `https://cdn.adjust.com/adjust-5.6.0.min.js`, or you can target latest version `https://cdn.adjust.com/adjust-latest.min.js` if you want automatic updates without need to change the target file. The sdk files are cached so they are served as fast as possible, and the cache is refreshed every half an hour. If you want updates immediately make sure to target specific version. - -You may want to use [Subresource Integrity (SRI)](sri-mdn) feature to mitigate XSS attacks risk. In this case you could use the loading snippet that enables SRI check instructing browser to validate the script before running it: -```html - -``` - -It's also possible to install our sdk through NPM: +To install the SDK use npm: ``` npm install @adjustcom/adjust-web-sdk --save