Skip to content

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

@AlexBulankou

Description

@AlexBulankou

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions