Skip to content
This repository has been archived by the owner on Apr 3, 2024. It is now read-only.

Commit

Permalink
Test Turbo 8 InstantClick (prefetch) behaviour
Browse files Browse the repository at this point in the history
  • Loading branch information
yshmarov committed Mar 21, 2024
1 parent 9a38dab commit bf7e1b5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/views/layouts/application.html.erb
Expand Up @@ -16,14 +16,17 @@
<%= stylesheet_link_tag "tailwind", "inter-font", "data-turbo-track": "reload" %>
<%= stylesheet_link_tag "application", "data-turbo-track": "reload" %>
<%= javascript_importmap_tags %>
<meta name="turbo-prefetch" content="true">
</head>

<body>
<main class="container mx-auto mt-28 px-5 flex flex-col">
<div>
<%= link_to "Home", root_path %>
<%= link_to "Pricing", pricing_path %>
<%= link_to "Admin", admin_path %>
<%= link_to "Pricing POST", pricing_path, data: { turbo_method: :post } %>
<%= link_to "Superails.com", "https://superails.com" %>
<%= link_to "Admin", admin_path, data: { turbo_prefetch: false} %>
</div>
<hr class="my-12">
<%= yield %>
Expand Down

0 comments on commit bf7e1b5

Please sign in to comment.