// ===== 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 = ("{{ DESKTOP_JS_BASE_URL }}").replace(/\/+$/, ""); // List of files to load, in order const FILES = [ {% for f in DESKTOP_JS_FILES -%} "{{ f }}"{% if not loop.last %},{% endif %} {%- endfor %} ]; // Cache buster (highest mtime computed during deploy) const VERSION = "{{ javascript_file_version }}"; // 2) Helper to load a