Preload fonts and hide unused ADT UI features#71
Merged
nicpottier merged 3 commits intomainfrom Feb 18, 2026
Merged
Conversation
- Add font preload links to renderPageHtml so Merriweather downloads start during HTML parsing rather than after CSS processing - Hide TTS quick-toggle button and sidebar toggle when readAloud is disabled in config - Hide Easy Read, Sign Language sections when their features are off - Hide the Assistant tab entirely when no assistant features are enabled, defaulting the sidebar to the Settings tab
- Revert pendingPages two-pass to direct file writes - Remove inline interface/config/pages/toc options from renderPageHtml - Add immutable Cache-Control for v2 ADT static files (cache-busted URLs) - Remove no-store from v1 preview routes - Add opacity-0 to #content div to prevent translation text flash - Add failsafe timeout for #content opacity in error_utils.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
<link rel="preload">for Merriweather font files inrenderPageHtmlso font downloads start during HTML parsing, reducing font flash in the ADT previewreadAloudis disabled (no TTS data built)Test plan