Performance Improvements:
-
Removed blocking profile requests during startup: The Config page now renders the language flags, Token Vault, Toolbox, and form controls without waiting for Redis or remote profile retrieval. It initializes immediately from local data or a new draft, loads the saved profile in the background, and preserves edits made while that profile is loading. Version information and the cached Toolbox button are also available immediately.
-
Streamlined configuration initialization:
config.jsnow loads directly from the page instead of waiting for a separate bootstrap script. Duplicate locale and language requests have been consolidated, and the logo is fetched only once. -
Replaced the external flag font with built-in SVG assets: Language flags no longer depend on the 1.47 MB
Twemoji.ttfdownload, removing a slow and failure-prone request while preserving the complete flag set. -
Improved asset caching on the Config page: Versioned CSS and JavaScript are now reused between visits, outdated asset URLs redirect to the current release, and language data uses a short cache lifetime. Service-worker installation also no longer downloads the page and its assets a second time.
-
Reduced response-compression overhead: The gzip compression level has been adjusted from 9 to 6, reducing server CPU usage with negligible impact on download size.
Bug Fixes:
-
Reported Gemini location restrictions accurately: When Google rejects the server's location, SubMaker now reports the upstream location restriction instead of replacing it with a generic HTTP 400 error.
-
Retained Gemini model-loading errors through Cloudflare: Model-discovery failures now reach the Config page as readable messages instead of being replaced by a Cloudflare HTML response or incorrectly attributed to the API key.
-
Accepted saved providers without
modelType: File Translation and Toolbox no longer reject providers that do not use DeepL'smodelTypesetting when the saved field is empty.
Testing:
- Expanded configuration startup regression coverage: Tests now cover immediate version and button rendering, background profile loading, shared language requests, asset caching, SVG-based flags, and the removal of redundant service-worker downloads.