wwLib not loaded before custom script

when I add a custom script and want to use wwLib I couldn´t access it. Any Ideas how to solve?

The error message in the screenshot you provided, “Uncaught ReferenceError: wwLib is not defined,” typically occurs when the JavaScript code is attempting to use a variable, function, or library (in this case, wwLib) that hasn’t been declared or isn’t loaded.

You can try to execute your custom script inside a JS action triggered on app load instead

custom code in the header is executed before the app is loaded

ah, cool idea. thx