Skip to content

Commit 1ea54a7

Browse files
committed
minor #1329 [Site] Lazily load the toggle-password assets (weaverryan)
This PR was merged into the 2.x branch. Discussion ---------- [Site] Lazily load the toggle-password assets | Q | A | ------------- | --- | Bug fix? | no | New feature? | no | Issues | None | License | MIT Small performance improvement, especially since this controller contains a CSS file. Currently, that results in an extra, render-blocking `<link rel="stylesheet"` tag on the page. This is the perfect type of thing to make lazy. Cheers! Commits ------- e5d9c40 [Site] Lazily load the toggle-password assets
2 parents a3de399 + e5d9c40 commit 1ea54a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ux.symfony.com/assets/controllers.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@
7777
"@symfony/ux-toggle-password": {
7878
"toggle-password": {
7979
"enabled": true,
80-
"fetch": "eager",
80+
"fetch": "lazy",
8181
"autoimport": {
8282
"@symfony/ux-toggle-password/dist/style.min.css": true
8383
}

0 commit comments

Comments
 (0)