@@ -38,7 +38,7 @@ Accelerating Navigation with Turbo Drive
3838
3939Turbo Drive enhances page-level navigation. It watches for link clicks
4040and 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"
4242experience without major changes to your code!
4343
4444Turbo 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
5757``head `` tag so that they aren't reloaded on every navigation (Turbo
5858re-executes any ``script `` tags inside ``body `` on every navigation).
5959Add 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 `_
7461for more info.
7562
76632. Reloading When a JavaScript/CSS File Changes
@@ -164,7 +151,7 @@ This changes the response status code to 422 on validation error, which
164151tells Turbo Drive that the form submit failed and it should re-render
165152with the errors. You can *also * choose to change the success redirect
166153status 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
168155situation.
169156
170157.. note ::
@@ -830,3 +817,4 @@ meaning it is not bound to Symfony's BC policy for the moment.
830817.. _`hotwired/turbo-rails` : https://github.com/hotwired/turbo-rails
831818.. _`sroze/live-twig` : https://github.com/sroze/live-twig
832819.. _`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