Repository navigation
Conversation
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Coordinate cold, concurrent and cached RequireJS loading before requesting BUMP. Cancel stale initialization and cover header playback and failure paths with regression tests. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Move BumpLoader and shared dependency readiness coordination into a colocated module while preserving existing imports and player behavior. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Cover HIGH and MAXIMUM billboards at positions zero and one so preloading and high fetch priority remain limited to the first curation. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Exercise the page renderer with five non-image blocks before the lead image and a distinct later image. Verify eager lead loading, lazy subsequent loading and toggle-controlled preload and fetch priority. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Register the Russian Moment locale explicitly while retaining the implicit-locale bundle optimization. Cover both Ukrainian variants in isolated module registries so other services and Moment fallback loading cannot hide a missing locale. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This reverts commit 08ecad0. The Ukrainian ru-UA variant is no longer used, so the added locale import and tests are unnecessary. Keep the Moment bundle optimization and all earlier review fixes unchanged. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Notify LiveHeaderMedia after BUMP reports playlistLoaded and pass the ready player directly to the callback. This prevents play() from being called immediately after load(), before the live playlist can start. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Replace the RequireJS readiness coordinator with a simpler approach. LiveHeaderMedia now renders BumpLoader upfront, so RequireJS is loaded with the page as before, and only the player itself is mounted when the reader first opens the media. Playback on that first open is triggered from the existing eventMapping prop once the playlist has loaded. This restores MediaLoader, its types and the PortraitVideoCarousel and live Post tests to how they were before the coordinator was added.
A lead image further down an article than block 4 is unlikely to be in the initial viewport, so lazy-load it and skip the preload and high fetch priority rather than competing with above-the-fold content.
LiveHeaderMedia now renders BumpLoader alongside MediaLoader, so the module mocks used by the live page tests need to provide it too.
Cover the first-open path where the player loads after the click: it should not play for Level 1 warnings and above, or if the reader has closed the media before the player has loaded.
…ore-web-vitals # Conflicts: # src/app/components/LiveHeaderMedia/index.tsx
This branch has not been deployed
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
LiveHeaderMediastill rendersBumpLoaderupfront, so RequireJS loads with the page as it does today. It only mountsMediaLoader, and with it BUMP, SMP and player initialisation, on the first click of "Watch Live". On that first open, playback starts from the existingeventMappingprop once the playlist has loaded, and the existing warning-level rules still apply.MediaLoaderitself is unchanged.fetchpriority="high"and a preload.Performance
Lighthouse 13, mobile (default simulated throttling), performance category only. Each version was a local production build (
yarn buildinws-nextjs-app) serving fixture data. Base islatestat this branch's merge-base. I ran 5 rounds, alternating between the versions in each round, and these are the medians./mundo/live/c7dkx155e626t)/pidgin/articles/cwl08rd38l6o)/pidgin)/pidgin/live/c7p765ynk9qt)CLS was 0 everywhere.
Notes:
Validation
cd ws-nextjs-app && yarn build.LiveHeaderMedia,MediaLoader,PortraitVideoCarousel,ImageWithCaption,Curation, ArticlePage, MediaArticlePage and the livePostsuites. The full Next.js unit suite passes too.