about summary refs log tree commit diff
path: root/app/assets/javascripts
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2016-03-26 13:42:10 +0100
committerEugen Rochko <eugen@zeonfederated.com>2016-03-26 13:42:10 +0100
commit85b00d19b840bae98322c2372e8e0e3ebd66f2e0 (patch)
tree7eee05cd92cdcc0b97a07d2a94f8ee661f6eaca7 /app/assets/javascripts
parentda4b675aca2c68e976d7920d3fc5b7e2881d1d86 (diff)
Moving Salmon notifications to background processing, fixing mini-profiler
behaviour with Turbolinks enabled, optimizing Rabl for production
Diffstat (limited to 'app/assets/javascripts')
-rw-r--r--app/assets/javascripts/profiler.coffee7
1 files changed, 5 insertions, 2 deletions
diff --git a/app/assets/javascripts/profiler.coffee b/app/assets/javascripts/profiler.coffee
index bcdcc1e59..40dfd0af6 100644
--- a/app/assets/javascripts/profiler.coffee
+++ b/app/assets/javascripts/profiler.coffee
@@ -1,2 +1,5 @@
-$(document).on 'turbolinks:load', ->
-  window.MiniProfiler.pageTransition() unless typeof window.MiniProfiler == 'undefined'
+$ ->
+  $(document).on 'turbolinks:load', ->
+    unless typeof window.MiniProfiler == 'undefined'
+      window.MiniProfiler.init()
+      window.MiniProfiler.pageTransition()