diff options
Diffstat (limited to 'app/assets/javascripts')
-rw-r--r-- | app/assets/javascripts/mastodon-logo.coffee | 2 | ||||
-rw-r--r-- | app/assets/javascripts/profiler.coffee | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/app/assets/javascripts/mastodon-logo.coffee b/app/assets/javascripts/mastodon-logo.coffee index bcf52f378..0b4e67e79 100644 --- a/app/assets/javascripts/mastodon-logo.coffee +++ b/app/assets/javascripts/mastodon-logo.coffee @@ -44,5 +44,5 @@ work = -> if runs == stop_at_run stop() -$ -> +$(document).on 'turbolinks:load', -> setTimeout(start, 100) diff --git a/app/assets/javascripts/profiler.coffee b/app/assets/javascripts/profiler.coffee new file mode 100644 index 000000000..bcdcc1e59 --- /dev/null +++ b/app/assets/javascripts/profiler.coffee @@ -0,0 +1,2 @@ +$(document).on 'turbolinks:load', -> + window.MiniProfiler.pageTransition() unless typeof window.MiniProfiler == 'undefined' |