@@ -38,7 +38,7 @@ Accelerating Navigation with Turbo Drive
38
38
39
39
Turbo Drive enhances page-level navigation. It watches for link clicks
40
40
and form submissions, performs them in the background, and updates the
41
- page without doing a full reload. This gives you the “ single-page-app”
41
+ page without doing a full reload. This gives you the " single-page-app"
42
42
experience without major changes to your code!
43
43
44
44
Turbo Drive is automatically enabled when you install Symfony UX Turbo.
@@ -57,20 +57,7 @@ We also recommend that you place your ``script`` tags live inside your
57
57
``head `` tag so that they aren't reloaded on every navigation (Turbo
58
58
re-executes any ``script `` tags inside ``body `` on every navigation).
59
59
Add a ``defer `` attribute to each ``script `` tag to prevent it from
60
- blocking the page load. See [Moving
61
-
62
- .. raw :: html
63
-
64
- <script >
65
-
66
- inside
67
-
68
- .. raw :: html
69
-
70
- < head>
71
-
72
- and the “defer”
73
- Attribute](https: // symfony.com/blog/moving-script-inside-head-and-the-defer-attribute)
60
+ blocking the page load. See `Moving <script> inside <head> and the "defer" Attribute `_
74
61
for more info.
75
62
76
63
2. Reloading When a JavaScript/CSS File Changes
@@ -164,7 +151,7 @@ This changes the response status code to 422 on validation error, which
164
151
tells Turbo Drive that the form submit failed and it should re-render
165
152
with the errors. You can *also * choose to change the success redirect
166
153
status code from 302 (the default) to 303 (``HTTP_SEE_OTHER ``). That's
167
- not required for Turbo Drive, but 303 is “ more correct” for this
154
+ not required for Turbo Drive, but 303 is " more correct" for this
168
155
situation.
169
156
170
157
.. note ::
@@ -830,3 +817,4 @@ meaning it is not bound to Symfony's BC policy for the moment.
830
817
.. _`hotwired/turbo-rails` : https://github.com/hotwired/turbo-rails
831
818
.. _`sroze/live-twig` : https://github.com/sroze/live-twig
832
819
.. _`Symfony UX configured in your app` : https://symfony.com/doc/current/frontend/ux.html
820
+ .. _`Moving <script> inside <head> and the "defer" Attribute` : https://symfony.com/blog/moving-script-inside-head-and-the-defer-attribute
0 commit comments