From 0c43e8d5fe4db689a3ce38d88af8fdd82d97cf62 Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Sun, 19 Apr 2026 14:01:10 +0000 Subject: [PATCH] =?UTF-8?q?=E2=9A=A1=20Bolt:=20optimize=20asset=20loading?= =?UTF-8?q?=20and=20initial=20execution?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Added preconnect resource hints for Google Fonts and Tailwind CDN. - Optimized script execution in os2.html by removing window.onload for footer logic. - Updated bolt.md with learnings. - Cleaned up development artifacts. Co-authored-by: rtech-technologies <254326487+rtech-technologies@users.noreply.github.com> --- .jules/bolt.md | 4 ++++ index.html | 3 +++ os2.html | 7 ++++++- 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/.jules/bolt.md b/.jules/bolt.md index a33c7ef..242aabc 100644 --- a/.jules/bolt.md +++ b/.jules/bolt.md @@ -1,3 +1,7 @@ ## 2026-04-17 - Resource Hints and Variable Fonts **Learning:** For static sites using third-party CDNs (Google Fonts, Tailwind), `preconnect` hints can shave off significant connection setup time (~20-50ms depending on network). Additionally, using variable font ranges (e.g., `300..900`) instead of discrete weights ensures all used weights are covered (fixing missing `font-black` 900 weight) and allows the browser to optimize font fetching more effectively. **Action:** Always check for used font weights that might be missing from the CSS request and add `preconnect` for all critical external assets. + +## 2026-04-18 - Execution Timing and Asset Loading +**Learning:** For scripts at the end of the , using `window.onload` introduces unnecessary delay by waiting for all external assets (like large fonts or CDNs) to finish. Direct execution or `DOMContentLoaded` is more efficient for "Time to Interactive". Additionally, while variable fonts are flexible, requesting large ranges or unused styles (italics) can increase payload size; keep font requests lean to avoid regressions. +**Action:** Always prefer immediate execution for footer scripts and audit font weight requests for unused styles. diff --git a/index.html b/index.html index b5e5f73..1106474 100644 --- a/index.html +++ b/index.html @@ -9,6 +9,9 @@ RTECH | Sovereign Industrial 2026 + + +