Update usage paragraph of next/script `onLoad` (#36453)
Changing the paragraph to not include `beforeInteractive` as one of the possible use cases of `onLoad`. *Update:* Added docs for `onError` in the API reference of `next/script`. @housseindjirdeh does `onError` also has the same limitation or is this only for `onLoad`? Closes https://github.com/vercel/next.js/issues/33402 ## Feature - [ ] Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR. - [ ] Related issues linked using `fixes #number` - [ ] Integration tests added - [x] Documentation added - [ ] Telemetry added. In case of a feature if it's used or not. - [ ] Errors have helpful link attached, see `contributing.md` ## Documentation / Examples - [x] Make sure the linting passes by running `yarn lint`
Showing
Please
register
or
sign in
to comment