If you want to "enter" it only once, then what prevents you from using a simple ES6 module? It should be downloaded only once from the server.
For example, you could have something similar in the config.js file: (warning! I did not try to run it)
export var Config = { path : 'path to find' };
you can use your module anywhere:
import {Config} from 'config';
source share