diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2016-03-26 13:42:10 +0100 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2016-03-26 13:42:10 +0100 |
commit | 85b00d19b840bae98322c2372e8e0e3ebd66f2e0 (patch) | |
tree | 7eee05cd92cdcc0b97a07d2a94f8ee661f6eaca7 /app/assets | |
parent | da4b675aca2c68e976d7920d3fc5b7e2881d1d86 (diff) |
Moving Salmon notifications to background processing, fixing mini-profiler
behaviour with Turbolinks enabled, optimizing Rabl for production
Diffstat (limited to 'app/assets')
-rw-r--r-- | app/assets/javascripts/profiler.coffee | 7 |
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() |