@anas-ameziane said:
Is there any hook that get called before loading any pages ?
Yeah I tend to use this for example... before it loads, and then after.
Perhaps I'm way off lol.
$(window).on('action:ajaxify.start', function() {
// ...stuff
});
$(window).on('action:ajaxify.end', function() {
// ...stuff
});