Updated react.html.haml to not preload home_timeline, notifications if no current_user

• Updated:
- react.html.haml to not preload home_timeline, notifications if no current_user
This commit is contained in:
mgabdev 2020-07-10 15:18:38 -05:00
parent 73b68373a1
commit 952e052321
1 changed files with 3 additions and 2 deletions

View File

@ -1,4 +1,5 @@
- content_for :header_tags do
- if @current_user
= preload_link_tag asset_pack_path('features/home_timeline.js'), crossorigin: 'anonymous'
= preload_link_tag asset_pack_path('features/notifications.js'), crossorigin: 'anonymous'