Hi!
I am currently trying to implement smoothstate.js on my site. However, the pages linked between each other have different stylesheets – do I have to combine these at a loss of performance, or can I in any fancy javascript way add these scripts to the header? I’m thinking that it should be possible to do this in the onStart function.
onStart: {
duration: 250,
render: function (url, $container) {
//Maybe here? The problem is that I do not know what method to use in order to capture the stylesheet of the other site in a variable. Any suggestions?
content.toggleAnimationClass('is-exiting');
$body.animate({
scrollTop: 0
});
}
}