Hello,
I really like the new functions.js functionality. I also like that you added a way to disable the AJAX loading.
But what I am looking for is a way to set a custom path. Using a js file located in the root directory of my site is not an option.
maybe I missed something? I really do not want to modify the .JS file at all to allow easier upgrades in the future.
For now, I modify your functions file with:
let initjsPath = 'js/';
if( typeof CUSTOMTHEMEJSPATH !== 'undefined' ) {
initjsPath = CUSTOMTHEMEJSPATH;
}
let pluginFnExec = Function( 'return ' + settings.pluginfn )(),
jsPath = initjsPath, file,
disableAJAX = 'false';I doubt this is optimal, but it allows me to add the proper path to the footer of my HTML and still use your ajax solution.
Since you already have us define scwDisableJsAJAX for an override, it would be nice to set multiple things without modifying the file. JS Path and Google API Key are the only 2 I have needed so far, but building out overrides for many settings would be a great addition.
I would also ask that you provide some documentation on how to leverage this file.
Keep up the great work!
