Skip to content

Commit e6cd9f4

Browse files
committed
Revert "fix: move JavaScript pack tags to head element to resolve Turbo warning"
This reverts commit 76f0fee.
1 parent 9bf0e5a commit e6cd9f4

File tree

3 files changed

+6
-40
lines changed

3 files changed

+6
-40
lines changed

app/views/layouts/application.html.erb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,6 @@
99
<%= append_javascript_pack_tag('stimulus-bundle') %>
1010
<%= append_javascript_pack_tag('stores-registration') %>
1111

12-
<%= stylesheet_pack_tag(media: 'all', 'data-turbolinks-track': true) %>
13-
<%= javascript_pack_tag('data-turbolinks-track': true, defer: true) %>
14-
1512
<%= csrf_meta_tags %>
1613
</head>
1714
<body class="min-h-screen flex flex-col bg-sky-50 text-gray-700">
@@ -23,6 +20,9 @@
2320

2421
<%= react_component "Footer" %>
2522

23+
<%= stylesheet_pack_tag(media: 'all', 'data-turbolinks-track': true) %>
24+
<%= javascript_pack_tag('data-turbolinks-track': true, defer: true) %>
25+
2626
<!-- This is a placeholder for ReactOnRails to know where to render the store props for
2727
client side hydration -->
2828
<%= redux_store_hydration_data %>

app/views/layouts/stimulus_layout.html.erb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,6 @@
99

1010
<%= append_stylesheet_pack_tag('stimulus-bundle') %>
1111
<%= append_javascript_pack_tag('stimulus-bundle') %>
12-
13-
<%= stylesheet_pack_tag(media: 'all', 'data-turbolinks-track': true) %>
14-
<%= javascript_pack_tag('data-turbolinks-track': true, defer: true) %>
1512
</head>
1613
<body class="min-h-screen flex flex-col bg-sky-50 text-gray-700">
1714
<%= react_component "NavigationBarApp" %>
@@ -21,5 +18,8 @@
2118
</div>
2219

2320
<%= react_component "Footer" %>
21+
22+
<%= stylesheet_pack_tag(media: 'all', 'data-turbolinks-track': true) %>
23+
<%= javascript_pack_tag('data-turbolinks-track': true, defer: true) %>
2424
</body>
2525
</html>

pr-review-command.md

Lines changed: 0 additions & 34 deletions
This file was deleted.

0 commit comments

Comments
 (0)