-
-
Notifications
You must be signed in to change notification settings - Fork 331
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature #2463 [Stimulus] Fasten lazy loading + add debug `lazy:loadin…
…g` and `lazy:loaded` (smnandre) 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`
- Loading branch information
Showing
2 changed files
with
78 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters