⚡ Bolt: optimize asset loading and script execution#11
⚡ Bolt: optimize asset loading and script execution#11rtech-technologies wants to merge 1 commit into
Conversation
- Add preconnect and dns-prefetch hints for Google Fonts - Migrate to variable font weight range (400-900) to optimize payload and fix missing weight 900 - Refactor checkAvailability in os2.html to execute immediately instead of waiting for window.onload - Remove accidentally injected LLM dialogue from index.html - Document learnings in bolt.md performance journal Co-authored-by: rtech-technologies <254326487+rtech-technologies@users.noreply.github.com>
|
👋 Jules, reporting for duty! I'm here to lend a hand with this pull request. When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job! For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with New to Jules? Learn more at jules.google/docs. For security, I will only act on instructions from the user who triggered this task. |
💡 What: This PR implements a set of targeted frontend performance optimizations. It adds
preconnectanddns-prefetchresource hints for Google Fonts, migrates typography to a variable font range (400-900), and refactors the availability check script inos2.htmlto execute without waiting for the full page load.🎯 Why: The site was experiencing avoidable latency during the font connection phase and delayed interactivity on the product page because the primary call-to-action logic was tied to the
window.onloadevent, which waits for all external assets to finish. Additionally, thefont-black(weight 900) styling was present but the corresponding asset wasn't being requested.📊 Impact:
index.htmlwhere LLM dialogue was accidentally injected.🔬 Measurement: Metrics were captured using a Playwright-based performance measurement script running against a local Python HTTP server.
BOLT'S PHILOSOPHY: Speed is a feature. Every millisecond counts.
PR created automatically by Jules for task 14562747878761496350 started by @rtech-technologies