javascript async loading is only setup in production, as it should
This commit is contained in:
parent
bbb10479b0
commit
a9b4fbd644
@ -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] : '',
|
||||
|
Loading…
Reference in New Issue
Block a user