Answer the question
In order to leave comments, you need to log in
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 :( Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question