From 50ccd998c3af2294598df5fbdc2e8fff803651cf Mon Sep 17 00:00:00 2001 From: Juanito Fatas Date: Mon, 22 Dec 2025 15:29:08 +0900 Subject: [PATCH 1/2] Inline code examples at build time instead of fetching via JavaScript Problem: Code examples were loaded via fetch() requests at runtime, which could fail due to: - Browser extensions (1Password, ad blockers) interfering with JavaScript - Network issues or timing problems - JavaScript execution failures Solution: Inline the syntax-highlighted code directly in the HTML during Jekyll build, eliminating the need for runtime fetch requests. Changes: - Created _includes/home/code_examples/*.html with the three Ruby examples - Modified _includes/home/try_ruby.html to use Jekyll includes instead of empty placeholders - Simplified javascripts/try-ruby-examples.js - removed fetch logic, now only generates TryRuby button URLs from existing DOM content - Simplified javascripts/hero-animation.js - removed async loading dependency - Added