There is a solution to call a javascript from one confluence page with the HTML macro.
There is a solution to call a javascript from all the pages of a confluence server thanks to the custom HTML which to configure from confluence administration.
Is there any solution to call a javascript from all the pages of one and only one confluence space?