fix: YouTube bot-check bypass via authenticated embeds and sign-in flow#345
Merged
Conversation
…g time (#287) - Defer YouTube player init via IntersectionObserver + requestIdleCallback gate with clickable placeholder (no eager iframe_api load) - Stagger loadAllData() into 3 priority tiers: critical (immediate), important (after rAF yield), deferred (requestIdleCallback fire-and-forget) - Move DeckGL supercluster rebuilds into map 'load' callback - Cancel deferred tier-3 callbacks on App destroy (prevents post-teardown work) - Add bot-check detection with YouTube sign-in window for desktop (Tauri) - Safe DOM construction for all new UI paths (no innerHTML with user data)
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
andreteow
pushed a commit
to andreteow/worldmonitor-a47
that referenced
this pull request
Feb 25, 2026
…g time (koala73#287) (koala73#345) - Defer YouTube player init via IntersectionObserver + requestIdleCallback gate with clickable placeholder (no eager iframe_api load) - Stagger loadAllData() into 3 priority tiers: critical (immediate), important (after rAF yield), deferred (requestIdleCallback fire-and-forget) - Move DeckGL supercluster rebuilds into map 'load' callback - Cancel deferred tier-3 callbacks on App destroy (prevents post-teardown work) - Add bot-check detection with YouTube sign-in window for desktop (Tauri) - Safe DOM construction for all new UI paths (no innerHTML with user data)
4 tasks
facusturla
pushed a commit
to facusturla/worldmonitor
that referenced
this pull request
Feb 27, 2026
…g time (koala73#287) (koala73#345) - Defer YouTube player init via IntersectionObserver + requestIdleCallback gate with clickable placeholder (no eager iframe_api load) - Stagger loadAllData() into 3 priority tiers: critical (immediate), important (after rAF yield), deferred (requestIdleCallback fire-and-forget) - Move DeckGL supercluster rebuilds into map 'load' callback - Cancel deferred tier-3 callbacks on App destroy (prevents post-teardown work) - Add bot-check detection with YouTube sign-in window for desktop (Tauri) - Safe DOM construction for all new UI paths (no innerHTML with user data)
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
Fixes #287 — UI freezing and cursor lag during initial load caused by MapLibre WebGL init, YouTube iframe API, and 15-20 concurrent API fetches all competing on the main thread simultaneously.
Performance
LiveNewsPanelno longer loads the YouTube iframe API duringcreatePanels(). UsesIntersectionObserver+requestIdleCallbackgate to wait until the panel is visible AND the browser is idle. Shows a lightweight clickable placeholder until then.loadAllData()now uses lazy task execution:requestAnimationFrameframe firstrequestIdleCallbackloadcallbackBug Fixes
IntelligenceGapBadge.playSound()now gated onpopupEnabledtoggleApp.destroy()createElement/textContent(no innerHTML with user data)Version
Test plan
tsc --noEmit— zero errorsnpm run build:full— succeeds