Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide a supported approach to import local (not dynamic) version of JS SDK as module #213

Open
AlexBulankou opened this issue May 31, 2016 · 2 comments

Comments

@AlexBulankou
Copy link
Contributor

There are several ways to initialize Aplication Insights and currently static loading when importing as module is not covered. We need to provide a supported way and update readme.

Dynamic loading. JS script tag is inserted in the head of the page. This is the recommended approach as our CDN is getting frequent updates. Static loading. You are responsible for including JS script tag or bundling the script with your other scripts.
Using initialization snippet Dynamic loading with snippet This is default approach used in a new ASP.NET application created in Visual Studio. Use this for MVC applications. Host AI JS SDK and initialize statically. Cordova applications where you would like to embed scripts into your application for faster loading is an example of when you would use this approach.
Using module import Dynamic loading using module import. This is the recommended approach for modern modular applications. missing today
@SergeyKanzhelev
Copy link

Do we need to include @RehanSaeed example from here to the getting started as well?

@KamilSzostak KamilSzostak modified the milestones: 1.1.0, Post 1.0 release May 8, 2017
@dbpieter
Copy link

@RehanSaeed @KamilSzostak Any update on this ?

@MSNev MSNev removed this from the 1.1.0 milestone Aug 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants