Skip to content

Commit 6a08c6c

Browse files
committed
minor #1495 [Site] Leveraging Turbo 8 on ux.symfony.com (weaverryan)
This PR was merged into the 2.x branch. Discussion ---------- [Site] Leveraging Turbo 8 on ux.symfony.com | Q | A | ------------- | --- | Bug fix? | no | New feature? | no | Issues | None | License | MIT That's all that's needed to use Turbo 8 + view transitions + instaclick-style preloading. https://github.com/symfony/ux/assets/121003/881dbe3e-5e6c-476b-bf2d-3da836501c18 Commits ------- c5e8d50 [Site] Leveraging Turbo 8 on ux.symfony.com
2 parents 30c8dbc + c5e8d50 commit 6a08c6c

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

ux.symfony.com/assets/controllers.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@
8787
"@symfony/ux-turbo": {
8888
"turbo-core": {
8989
"enabled": true,
90-
"fetch": "lazy"
90+
"fetch": "eager"
9191
},
9292
"mercure-turbo-stream": {
9393
"enabled": true,

ux.symfony.com/importmap.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@
102102
'version' => '2.0.2',
103103
],
104104
'@hotwired/turbo' => [
105-
'version' => '7.3.0',
105+
'version' => '8.0.2',
106106
],
107107
'typed.js' => [
108108
'version' => '2.0.16',

ux.symfony.com/templates/base.html.twig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
{% if meta.canonical|default %}
1111
<link rel="canonical" href="{{ meta.canonical }}">
1212
{% endif %}
13+
<meta name="view-transition" content="same-origin" />
1314
<link rel="icon" href="/favicon.ico" sizes="48x48">
1415
<link rel="icon" href="/favicon.svg" sizes="any" type="image/svg+xml">
1516
<link rel="apple-touch-icon" href="/apple-touch-icon.png">

0 commit comments

Comments
 (0)