Skip to content

fix: eliminate FOUC and remove Gemfile.lock from tracking#66

Merged
ronaldtse merged 2 commits into
mainfrom
fix/fouc
May 26, 2026
Merged

fix: eliminate FOUC and remove Gemfile.lock from tracking#66
ronaldtse merged 2 commits into
mainfrom
fix/fouc

Conversation

@ronaldtse
Copy link
Copy Markdown
Contributor

Changes

  • Eliminate FOUC: Update _includes/head.html override to match theme 1.0.3 pattern — vite_javascript_tag in <head> so CSS <link> blocks rendering before paint
  • Fix dark mode flash: Inline dark mode detection script runs before any CSS
  • Remove Gemfile.lock: Already in .gitignore but was still tracked; removes from git tracking

Relates to ISO-TC211/jekyll-theme-isotc211#10

ronaldtse added 2 commits May 26, 2026 16:10
Update _includes/head.html to match jekyll-theme-isotc211 1.0.3:
- Add inline dark mode detection script before paint
- Move vite_javascript_tag into <head> (CSS blocks rendering)
- Remove non-functional vite_stylesheet_tag
- Bump theme gem to 1.0.3
It is already in .gitignore but was previously tracked.
@ronaldtse ronaldtse merged commit fdeafa2 into main May 26, 2026
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant