A
A
Alexander Wolf2014-12-02 01:59:11
JavaScript
Alexander Wolf, 2014-12-02 01:59:11

Why do Angular + Turbolinks brakes appear?

Hey! After connecting Turbolinks to the site, the FPS sags terribly (noticeable in CSS animations).

$(document).on('page:before-unload' function() {
  $('body').fadeOut();
  angular.element("body").scope().$broadcast("$destroy");
});

$(document).on('page:change', function() {
  $('body').hide().fadeIn();
  angular.bootstrap(document.body, ['application']);
});
Everything seems to be shutting down :(
Any ideas?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Renat Ibragimov, 2014-12-02
@mannaro

Why Turbolinks when you already have Angular? Pick one.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question