From a413e30f658f08be9823cfd29353c824f3edf89d Mon Sep 17 00:00:00 2001 From: Robin Steiner Date: Mon, 5 Aug 2024 14:02:06 +0200 Subject: [PATCH] Disable turbo prefetching in development --- app/views/layouts/application.html.haml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/views/layouts/application.html.haml b/app/views/layouts/application.html.haml index 9b99c097b..a78dd8e78 100644 --- a/app/views/layouts/application.html.haml +++ b/app/views/layouts/application.html.haml @@ -1,6 +1,9 @@ !!! %html %head + // This disables the Turbo prefetch in development as it gets quite annoying when debugging + - if Rails.env.development? + %meta{:name => "turbo-prefetch", :content => "false"}/ %meta{:content => "text/html; charset=UTF-8", "http-equiv" => "Content-Type"}/ %title PuzzleSkills %meta{:content => "width=device-width,initial-scale=1", :name => "viewport"}/