javascript async loading is only setup in production, as it should

This commit is contained in:
echarp 2018-07-11 19:24:21 +02:00
parent bbb10479b0
commit a9b4fbd644

View File

@ -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] : '',