rsnext/test/integration/script-loader
Houssein Djirdeh a8186065b8
[Script] Adds onReady prop to next/script (#38849)
Closes: #30962

This PR adds a new `onReady` prop to `next/script` to handle shortcomings of the current `onLoad` prop. Some third-party providers and widgets require initialization code to run after the script's `load` event and every time the component is mounted. The `onReady` should solve that use case.

For more details, refer to the discussion in #30962.

CC @janicklas-ralph

## Bug

- [X] Related issues linked using `fixes #number`
- [X] Integration tests added
- [ ] Errors have helpful link attached, see `contributing.md`


Co-authored-by: JJ Kasper <22380829+ijjk@users.noreply.github.com>
2022-07-28 20:42:52 +00:00
..
base [Script] Adds onReady prop to next/script (#38849) 2022-07-28 20:42:52 +00:00
partytown Adds web worker support to <Script /> using Partytown (#34244) 2022-03-11 22:26:46 +00:00
partytown-missing Adds web worker support to <Script /> using Partytown (#34244) 2022-03-11 22:26:46 +00:00
test [Script] Adds onReady prop to next/script (#38849) 2022-07-28 20:42:52 +00:00