Skip to content

Lazy load, Sentry.onLoad is not function #7696

@vadimka123

Description

@vadimka123

Is there an existing issue for this?

How do you use Sentry?

Sentry Saas (sentry.io)

Which SDK are you using? If you use the CDN bundles, please specify the exact bundle (e.g. bundle.tracing.min.js) in your SDK setup.

Sentry Browser Loader

SDK Version

latest

Framework Version

No response

Link to Sentry event

No response

SDK Setup

No response

Steps to Reproduce

<script src="https://js.sentry-cdn.com/********************************.min.js" async crossorigin="anonymous">

Sentry.onLoad(function() { ... });

Expected Result

Sentry.onLoad is a function that only the loader provides, and - as the name suggests - it sets a function to be run once the full SDK has been loaded

Actual Result

Sentry.onLoad is not a function

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions