microsoft / ApplicationInsights-JS

Microsoft Application Insights SDK for JavaScript
MIT License
650 stars 240 forks source link

[BUG] Application Insights JavaScript(Web) SDK v3 using deprecated APIs affecting lighthouse score #2431

Open rubiks-cube opened 1 week ago

rubiks-cube commented 1 week ago

Application Insights JavaScript(Web) SDK v3 using deprecated APIs affecting lighthouse score best practices. Please suggest some way to remove this issue.

Image

MSNev commented 1 week ago

As a generic SDK that is designed to run in any web environment we always (by default) attempt to hook all possibly available "unload" handlers. We have a configuration option where you can tell us to not attempt to hook 0 or more events, including the unload event.

Some additional details and a link to the configuration is available in this comment, https://github.com/microsoft/ApplicationInsights-JS/issues/2427#issuecomment-2392203244