Solved.
both parent and child theme call the /app/setup.php
, which in each case enqeues the css and js files twice. (even though one of each shows up in the head).
I’ve noticed a simple console.log("hello world");
was rendered twice.
So in the parent setup.php I’ve added:
if(get_template_directory() === get_stylesheet_directory()) {
add_action('wp_enqueue_scripts', function () {
// stuff here
});
}
Don’t know the exacts, but now it works again.