problem solved. i have to import external script with
require([script], function(name) { })It seems that importing scripts in a classic way creates conflicts in nodebb
Is there any hook that get called before loading any pages ?
Called before every cold page load, you mean?
@julian i don't understand what do you mean by "cold" page... I finally found this hook "static:app.preload", but there is no documentation or exemple to how to use it.
@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
});