You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This PR was squashed before being merged into the 2.x branch.
Discussion
----------
[Stimulus] Fasten lazy loading + add debug `lazy:loading` and `lazy:loaded`
| Q | A
| ------------- | ---
| Bug fix? | no
| New feature? | yes
| Issues | Fix #...
| License | MIT
This PR..
1. improves the controller **lazy loading** by tuning algorithm (early exit, remove await, ...)
2. introduces two **new debug events** in the console to ease DX with lazy controllers
* `my-controller#lazy:loading` when the lazy controller is detected in the DOM
* `my-controller#lazy:loaded` after the file has been downloaded and imported
I would really like some feedback / tests IRL (especially with Webpack i'm not used to)
Commits
-------
3b8e1ce [Stimulus] Fasten lazy loading + add debug `lazy:loading` and `lazy:loaded`
0 commit comments