From a9b4fbd64479ae88ec698ac267f38caf60cfeeee Mon Sep 17 00:00:00 2001 From: echarp Date: Wed, 11 Jul 2018 19:24:21 +0200 Subject: [PATCH] javascript async loading is only setup in production, as it should --- app/views/layouts/application.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/layouts/application.html.haml b/app/views/layouts/application.html.haml index 3793ac78..8a5092aa 100644 --- a/app/views/layouts/application.html.haml +++ b/app/views/layouts/application.html.haml @@ -14,7 +14,7 @@ = stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true = javascript_include_tag 'application', 'data-turbolinks-track' => true, - type: 'text/javascript', defer: true, async: true + type: 'text/javascript', defer: true, async: Rails.env.production? = csrf_meta_tags - classes = [request.domain ? request.domain.split('.')[0] : '',