Skip to content

Lazy load, Sentry.onLoad is not function #7696

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

<scriptsrc="https://js.sentry-cdn.com/********************************.min.js" asynccrossorigin="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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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