// ===== Runtime loader for external JS files (no Jinja includes) ===== (function () { // 1) Values injected by Ansible/Jinja // Base URL where your files were deployed (e.g. CDN), made safe w/o trailing slash const BASE_URL = ("{{ DASHBOARD_JS_BASE_URL }}").replace(/\/+$/, ""); // List of files to load, in order const FILES = [ {% for f in DASHBOARD_JS_FILES -%} "{{ f }}"{% if not loop.last %},{% endif %} {%- endfor %} ]; // Cache buster (highest mtime computed during deploy) const VERSION = "{{ javascript_file_version }}"; {% if 'oidc.js' in DASHBOARD_JS_FILES %} window.__oidcLoginReady = false; {% endif %} // 2) Helper to load a