Skip to content
This repository was archived by the owner on Oct 21, 2026. It is now read-only.

fix(html): restore popup APIs after reconnect - #2591

Closed
mihar-22 wants to merge 1 commit into
fix/html-player-rebindingfrom
fix/html-popup-reconnect
Closed

mihar-22 wants to merge 1 commit into
fix/html-player-rebindingfrom
fix/html-popup-reconnect

Conversation

@mihar-22

@mihar-22 mihar-22 commented Sep 2, 2026

Copy link
Copy Markdown
Member

Refs videojs/video.js#9462

Depends on #2318 (stacked on fix/html-player-rebinding, which supplies the idempotent SnapshotController.track() this change builds on).

Summary

Re-implementation of the original branch on top of the current main (the previous version referenced menu internals and an AlertDialogElement implementation that no longer exist). Popup, tooltip, menu, and dialog roots now own their imperative APIs strictly per DOM connection: each connection creates the API, both disconnectedCallback and destroyCallback tear it down through the same private dispose method, and a reconnect silently replays the open (or current error) state without emitting a duplicate open-change.

Bugs fixed, all confirmed on main:

  • PopoverElement recreated createPopover() on every connect but only destroyed it in destroyCallback, so every reconnect leaked a live API and its listeners.
  • TooltipElement, MenuElement, DialogElementBase (DialogElement, AlertDialogElement), and ErrorDialogElement destroyed per connection but had no destroyCallback, so destroy() while connected left the API and its trigger/document listeners live.
  • None of them restored open (or the current error) after a reconnect: willUpdate only syncs when changed.has('open'), and reconnecting schedules no update.

Changes

  • packages/store: SnapshotController.hostDestroyed() releases the subscription permanently and ignores later hostConnected()/track() calls. DestroyMixin.destroyCallback() already invokes hostDestroyed() on tracked controllers, so elements no longer release snapshot controllers by hand.
  • packages/html/src/ui/restore-guard.ts: small shared RestoreGuard that suppresses change notifications while an element replays state it already holds into a recreated API. Popover, tooltip, and dialog roots check active inside onOpenChange and wrap the replay in run(). The menu commits through MenuApi.syncOpen(), which already bypasses the cancelable open-change request, and the error dialog reopens from willUpdate, so neither needs the guard.
  • Each root gets one #disposeConnection() (trigger cleanup, lock release, abort controllers, API destroy) called from disconnectedCallback and destroyCallback; the dispose is idempotent because a destroyed element may still be removed from the DOM afterwards.
  • connectedCallback replays the held open state after hasUpdated and calls requestUpdate() so attributes, the Popover API show/hide, trigger ARIA, and positioning are refreshed for the new connection.

Testing

  • pnpm exec vp run @videojs/store#build and pnpm exec vp run @videojs/html#build, then pnpm typecheck from a clean tsgo --build: pass (0 errors)
  • pnpm -F @videojs/store test: 134 passed
  • pnpm -F @videojs/html test: 462 passed; create-i18n.test.ts > updates media-text when html lang changes fails intermittently (2 of 3 isolated runs) in a file this branch does not touch and whose code uses neither SnapshotController nor track(), so it is unrelated
  • New coverage: rapid remove/reappend cycles, destroy-while-connected, and open-state restore with no duplicate open-change for PopoverElement, TooltipElement, MenuElement, DialogElement, and ErrorDialogElement; hostDestroyed() for SnapshotController. Swapping the element sources back to the base branch makes 8 of the 10 new element tests fail (the error-dialog restore already passes on base when a player provider is present because its context consumer requests an update on reconnect).
  • pnpm lint:fix:file on touched files: no errors; remaining anti-slop notes are pre-existing casts in the test files and one justified as unknown as in the new error-dialog test provider

Replaces #2319, which GitHub would not let me retarget because it was part of a stack under #2317.

Popup, tooltip, menu, and dialog roots create DOM-bound imperative APIs
per connection. The popover never destroyed the previous instance, so
each reconnect leaked listeners; the tooltip, menu, and dialogs had no
destroyCallback, so destroy() while connected left the API live; and no
root re-applied its open (or current error) state after a reconnect
because willUpdate only syncs on an `open` change and reconnecting
schedules no update.

Tear each connection down in one private dispose method that both
disconnectedCallback and destroyCallback call, and replay the held open
state into the recreated API through a shared RestoreGuard so the replay
emits no duplicate open-change event. SnapshotController gains
hostDestroyed(), which DestroyMixin invokes, so elements no longer need
to release their snapshot controllers by hand.

Refs #2366

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@vercel

vercel Bot commented Sep 2, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
v10-sandbox Ready Ready Preview Sep 2, 2026 10:42pm UTC

Request Review

@pkg-pr-new

pkg-pr-new Bot commented Sep 2, 2026

Copy link
Copy Markdown
@videojs/core

pnpm add https://pkg.pr.new/@videojs/core@2591

@videojs/element

pnpm add https://pkg.pr.new/@videojs/element@2591

@videojs/html

pnpm add https://pkg.pr.new/@videojs/html@2591

@videojs/media

pnpm add https://pkg.pr.new/@videojs/media@2591

@videojs/react

pnpm add https://pkg.pr.new/@videojs/react@2591

@videojs/spf

pnpm add https://pkg.pr.new/@videojs/spf@2591

@videojs/store

pnpm add https://pkg.pr.new/@videojs/store@2591

@videojs/utils

pnpm add https://pkg.pr.new/@videojs/utils@2591

commit: 8d0a3b9

@github-actions

github-actions Bot commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

📦 Bundle Size Report

🎨 @videojs/html — 59 small size changes
Path Base initial PR initial Initial diff Lazy diff
/video/minimal-skin 60.17 kB 60.32 kB +155 B (+0.3%) 0 B
/video/player 9.62 kB 9.64 kB +22 B (+0.2%) 0 B
/video/skin 60.34 kB 60.52 kB +182 B (+0.3%) 0 B
/audio/minimal-skin 46.32 kB 46.35 kB +29 B (+0.1%) 0 B
/audio/player 6.06 kB 6.08 kB +11 B (+0.2%) 0 B
/audio/skin 50.20 kB 50.32 kB +124 B (+0.2%) 0 B
/background/player 4.35 kB 4.37 kB +19 B (+0.4%) 0 B
/background/skin 9.68 kB 9.69 kB +15 B (+0.2%) 0 B
/live-video/minimal-skin 54.34 kB 54.46 kB +127 B (+0.2%) 0 B
/live-video/player 8.99 kB 9.00 kB +18 B (+0.2%) 0 B
/live-video/skin 56.84 kB 56.99 kB +156 B (+0.3%) 0 B
/live-audio/minimal-skin 39.62 kB 39.74 kB +122 B (+0.3%) 0 B
/live-audio/player 6.07 kB 6.08 kB +16 B (+0.3%) 0 B
/live-audio/skin 43.25 kB 43.31 kB +56 B (+0.1%) 0 B
/ui/airplay-button 11.20 kB 11.20 kB +9 B (+0.1%) 0 B
/ui/alert-dialog 9.47 kB 9.55 kB +88 B (+0.9%) 0 B
/ui/audio-track-radio-group 11.26 kB 11.28 kB +15 B (+0.1%) 0 B
/ui/buffering-indicator 8.51 kB 8.52 kB +7 B (+0.1%) 0 B
/ui/captions-button 11.44 kB 11.44 kB +6 B (+0.1%) 0 B
/ui/captions-radio-group 11.36 kB 11.36 kB -3 B (-0.0%) 0 B
/ui/cast-button 11.16 kB 11.18 kB +22 B (+0.2%) 0 B
/ui/container 9.36 kB 9.40 kB +36 B (+0.4%) 0 B
/ui/controls 8.72 kB 8.74 kB +17 B (+0.2%) 0 B
/ui/dialog 9.40 kB 9.48 kB +88 B (+0.9%) 0 B
/ui/error-dialog 12.92 kB 12.97 kB +53 B (+0.4%) 0 B
/ui/fullscreen-button 11.17 kB 11.18 kB +6 B (+0.1%) 0 B
/ui/gesture 9.47 kB 9.49 kB +17 B (+0.2%) 0 B
/ui/hotkey 9.88 kB 9.89 kB +10 B (+0.1%) 0 B
/ui/live-button 9.66 kB 9.67 kB +18 B (+0.2%) 0 B
/ui/menu 19.96 kB 20.00 kB +42 B (+0.2%) 0 B
/ui/mute-button 11.19 kB 11.22 kB +27 B (+0.2%) 0 B
/ui/pip-button 11.13 kB 11.15 kB +29 B (+0.3%) 0 B
/ui/play-button 11.13 kB 11.15 kB +16 B (+0.1%) 0 B
/ui/playback-rate-button 11.24 kB 11.26 kB +21 B (+0.2%) 0 B
/ui/playback-rate-radio-group 11.25 kB 11.26 kB +10 B (+0.1%) 0 B
/ui/popover 8.61 kB 8.71 kB +106 B (+1.2%) 0 B
/ui/poster 8.58 kB 8.59 kB +17 B (+0.2%) 0 B
/ui/quality-radio-group 11.84 kB 11.85 kB +17 B (+0.1%) 0 B
/ui/seek-button 11.17 kB 11.18 kB +11 B (+0.1%) 0 B
/ui/seek-indicator 12.61 kB 12.63 kB +16 B (+0.1%) 0 B
/ui/slider 12.03 kB 12.08 kB +51 B (+0.4%) 0 B
/ui/status-indicator 12.96 kB 12.98 kB +14 B (+0.1%) 0 B
/ui/thumbnail 9.75 kB 9.76 kB +14 B (+0.1%) 0 B
/ui/time 10.79 kB 10.80 kB +6 B (+0.1%) 0 B
/ui/time-slider 14.98 kB 14.97 kB -5 B (-0.0%) 0 B
/ui/time-slider-chapter-title 8.70 kB 8.72 kB +15 B (+0.2%) 0 B
/ui/time-slider-chapters 9.67 kB 9.68 kB +15 B (+0.2%) 0 B
/ui/title 8.08 kB 8.09 kB +15 B (+0.2%) 0 B
/ui/tooltip 10.00 kB 10.09 kB +97 B (+0.9%) 0 B
/ui/volume-indicator 12.96 kB 12.98 kB +19 B (+0.1%) 0 B
/ui/volume-popover 14.63 kB 14.73 kB +96 B (+0.6%) 0 B
/ui/volume-slider 12.69 kB 12.70 kB +5 B (+0.0%) 0 B
/video (default) 61.95 kB 62.08 kB +131 B (+0.2%) 0 B
/video (default + hls) 200.86 kB 200.98 kB +117 B (+0.1%) 0 B
/video (minimal) 61.80 kB 61.79 kB -10 B (-0.0%) 0 B
/video (minimal + hls) 200.77 kB 200.84 kB +77 B (+0.0%) 0 B
/audio (default) 51.72 kB 51.73 kB +12 B (+0.0%) 0 B
/audio (minimal) 47.78 kB 47.95 kB +166 B (+0.3%) 0 B
/background 11.45 kB 11.46 kB +10 B (+0.1%) 0 B
Presets (7)
Entry Initial Lazy
/video (default) 62.08 kB 56.87 kB
/video (default + hls) 200.98 kB 56.87 kB
/video (minimal) 61.79 kB 56.87 kB
/video (minimal + hls) 200.84 kB 56.87 kB
/audio (default) 51.73 kB 56.87 kB
/audio (minimal) 47.95 kB 56.87 kB
/background 11.46 kB 56.87 kB
Media (18)
Entry Initial
/media/mux-video 142.40 kB
/media/mux-audio 142.23 kB
/media/background-video 1.16 kB
/media/cloudflare-video 6.28 kB
/media/dash-video 211.61 kB
/media/hls-audio 22.09 kB
/media/hls-background-video 16.80 kB
/media/hls-video 28.04 kB
/media/hlsjs-video 141.22 kB
/media/mux-background-video 16.83 kB
/media/native-hls-video 7.57 kB
/media/shaka-video 199.18 kB
/media/spotify-audio 6.27 kB
/media/tiktok-video 6.33 kB
/media/twitch-video 6.22 kB
/media/vimeo-video 13.05 kB
/media/wistia-video 60.23 kB
/media/youtube-video 6.81 kB
Extensions (2)
Entry Initial
/extensions/google-cast 6.52 kB
/extensions/mux-data 26.94 kB
Players (5)
Entry Initial Lazy
/video/player 9.64 kB 56.87 kB
/audio/player 6.08 kB 56.87 kB
/background/player 4.37 kB 56.87 kB
/live-video/player 9.00 kB 56.87 kB
/live-audio/player 6.08 kB 56.87 kB
Skins (29)
Entry Type Initial Lazy
/video/minimal-skin.css css 6.63 kB —
/video/skin.css css 6.45 kB —
/video/minimal-skin js 60.32 kB 56.87 kB
/video/minimal-skin2 js 7.19 kB —
/video/skin js 60.52 kB 56.87 kB
/video/skin2 js 7.04 kB —
/audio/minimal-skin.css css 4.95 kB —
/audio/skin.css css 4.88 kB —
/audio/minimal-skin js 46.35 kB 56.87 kB
/audio/minimal-skin2 js 5.36 kB —
/audio/skin js 50.32 kB 56.87 kB
/audio/skin2 js 5.32 kB —
/background/skin.css css 145 B —
/background/skin js 9.69 kB 56.87 kB
/background/skin2 js 190 B —
/live-video/minimal-skin.css css 6.63 kB —
/live-video/skin.css css 6.45 kB —
/live-video/minimal-skin js 54.46 kB 56.87 kB
/live-video/minimal-skin2 js 7.19 kB —
/live-video/skin js 56.99 kB 56.87 kB
/live-video/skin2 js 7.04 kB —
/live-audio/minimal-skin.css css 4.95 kB —
/live-audio/skin.css css 4.88 kB —
/live-audio/minimal-skin js 39.74 kB 56.87 kB
/live-audio/minimal-skin2 js 5.36 kB —
/live-audio/skin js 43.31 kB 56.87 kB
/live-audio/skin2 js 5.32 kB —
/global.css css 190 B —
/shared.css css 118 B —
UI Components (50)
Entry Initial Lazy
/ui/airplay-button 11.20 kB 56.87 kB
/ui/alert-dialog 9.55 kB 56.87 kB
/ui/audio-track-radio-group 11.28 kB 56.87 kB
/ui/buffering-indicator 8.52 kB 56.87 kB
/ui/captions-button 11.44 kB 56.87 kB
/ui/captions-radio-group 11.36 kB 56.87 kB
/ui/cast-button 11.18 kB 56.87 kB
/ui/container 9.40 kB 56.87 kB
/ui/controls 8.74 kB 56.87 kB
/ui/controls-backdrop 1.69 kB 56.87 kB
/ui/controls-content 1.67 kB 56.87 kB
/ui/dialog 9.48 kB 56.87 kB
/ui/dialog-backdrop 1.70 kB 56.87 kB
/ui/dialog-close 2.06 kB 56.87 kB
/ui/dialog-description 1.69 kB 56.87 kB
/ui/dialog-popup 1.90 kB 56.87 kB
/ui/dialog-title 1.70 kB 56.87 kB
/ui/error-dialog 12.97 kB 56.87 kB
/ui/fullscreen-button 11.18 kB 56.87 kB
/ui/gesture 9.49 kB 56.87 kB
/ui/hotkey 9.89 kB 56.87 kB
/ui/live-button 9.67 kB 56.87 kB
/ui/menu 20.00 kB 56.87 kB
/ui/mute-button 11.22 kB 56.87 kB
/ui/pip-button 11.15 kB 56.87 kB
/ui/play-button 11.15 kB 56.87 kB
/ui/playback-rate-button 11.26 kB 56.87 kB
/ui/playback-rate-radio-group 11.26 kB 56.87 kB
/ui/popover 8.71 kB 56.87 kB
/ui/poster 8.59 kB 56.87 kB
/ui/quality-radio-group 11.85 kB 56.87 kB
/ui/seek-button 11.18 kB 56.87 kB
/ui/seek-indicator 12.63 kB 56.87 kB
/ui/seek-indicator-value 1.10 kB —
/ui/slider 12.08 kB 56.87 kB
/ui/status-announcer 10.59 kB 56.87 kB
/ui/status-indicator 12.98 kB 56.87 kB
/ui/status-indicator-value 1.10 kB —
/ui/thumbnail 9.76 kB 56.87 kB
/ui/time 10.80 kB 56.87 kB
/ui/time-slider 14.97 kB 56.87 kB
/ui/time-slider-chapter-title 8.72 kB 56.87 kB
/ui/time-slider-chapters 9.68 kB 56.87 kB
/ui/title 8.09 kB 56.87 kB
/ui/tooltip 10.09 kB 56.87 kB
/ui/volume-indicator 12.98 kB 56.87 kB
/ui/volume-indicator-fill 1.11 kB —
/ui/volume-indicator-value 1.10 kB —
/ui/volume-popover 14.73 kB 56.87 kB
/ui/volume-slider 12.70 kB 56.87 kB
⚛️ @videojs/react — no changes
Presets (7)
Entry Initial Lazy
/video (default) 48.32 kB 56.87 kB
/video (default + hls) 186.33 kB 56.87 kB
/video (minimal) 48.32 kB 56.87 kB
/video (minimal + hls) 186.25 kB 56.87 kB
/audio (default) 37.53 kB 56.87 kB
/audio (minimal) 37.55 kB 56.87 kB
/background 581 B 56.87 kB
Media (22)
Entry Initial
/media/mux-video/hls-js 140.61 kB
/media/mux-video/spf 27.39 kB
/media/mux-audio/hls-js 140.55 kB
/media/mux-audio/spf 21.32 kB
/media/background-video 402 B
/media/cloudflare-video 4.34 kB
/media/dash-video 210.29 kB
/media/hls-audio 20.33 kB
/media/hls-background-video 16.46 kB
/media/hls-video 26.34 kB
/media/hlsjs-video 139.44 kB
/media/mux-audio 140.56 kB
/media/mux-background-video 16.45 kB
/media/mux-video 140.54 kB
/media/native-hls-video 5.76 kB
/media/shaka-video 197.52 kB
/media/spotify-audio 4.22 kB
/media/tiktok-video 4.18 kB
/media/twitch-video 4.30 kB
/media/vimeo-video 11.19 kB
/media/wistia-video 60.05 kB
/media/youtube-video 4.86 kB
Extensions (2)
Entry Initial
/extensions/google-cast 5.34 kB
/extensions/mux-data 25.70 kB
Players (5)
Entry Initial Lazy
/video/player 7.56 kB 56.87 kB
/audio/player 4.00 kB 56.87 kB
/background/player 2.27 kB 56.87 kB
/live-video/player 6.96 kB 56.87 kB
/live-audio/player 3.99 kB 56.87 kB
Skins (26)
Entry Type Initial Lazy
/video/minimal-skin.css css 6.52 kB —
/video/skin.css css 6.35 kB —
/video/minimal-skin js 48.18 kB 56.87 kB
/video/minimal-skin.tailwind js 55.09 kB 56.87 kB
/video/skin js 48.16 kB 56.87 kB
/video/skin.tailwind js 54.92 kB 56.87 kB
/audio/minimal-skin.css css 4.81 kB —
/audio/skin.css css 4.74 kB —
/audio/minimal-skin js 37.54 kB 56.87 kB
/audio/minimal-skin.tailwind js 42.61 kB 56.87 kB
/audio/skin js 37.43 kB 56.87 kB
/audio/skin.tailwind js 42.56 kB 56.87 kB
/background/skin.css css 90 B —
/background/skin js 277 B —
/live-video/minimal-skin.css css 6.52 kB —
/live-video/skin.css css 6.35 kB —
/live-video/minimal-skin js 40.35 kB 56.87 kB
/live-video/minimal-skin.tailwind js 47.09 kB 56.87 kB
/live-video/skin js 40.39 kB 56.87 kB
/live-video/skin.tailwind js 47.03 kB 56.87 kB
/live-audio/minimal-skin.css css 4.81 kB —
/live-audio/skin.css css 4.74 kB —
/live-audio/minimal-skin js 29.29 kB 56.87 kB
/live-audio/minimal-skin.tailwind js 33.28 kB 56.87 kB
/live-audio/skin js 29.30 kB 56.87 kB
/live-audio/skin.tailwind js 33.37 kB 56.87 kB
UI Components (39)
Entry Initial Lazy
/ui/airplay-button 10.41 kB 56.87 kB
/ui/alert-dialog 4.71 kB 56.87 kB
/ui/audio-track 7.93 kB 56.87 kB
/ui/audio-track-radio-group 9.10 kB 56.87 kB
/ui/buffering-indicator 7.77 kB 56.87 kB
/ui/captions-button 10.39 kB 56.87 kB
/ui/captions-radio-group 9.21 kB 56.87 kB
/ui/cast-button 10.39 kB 56.87 kB
/ui/controls 7.55 kB 56.87 kB
/ui/dialog 4.73 kB 56.87 kB
/ui/error-dialog 11.77 kB 56.87 kB
/ui/fullscreen-button 10.36 kB 56.87 kB
/ui/gesture 7.99 kB 56.87 kB
/ui/hotkey 8.38 kB 56.87 kB
/ui/live-button 8.76 kB 56.87 kB
/ui/menu 18.90 kB 56.87 kB
/ui/mute-button 10.40 kB 56.87 kB
/ui/pip-button 10.35 kB 56.87 kB
/ui/play-button 10.35 kB 56.87 kB
/ui/playback-rate 7.99 kB 56.87 kB
/ui/playback-rate-button 10.34 kB 56.87 kB
/ui/playback-rate-radio-group 9.14 kB 56.87 kB
/ui/popover 8.13 kB 56.87 kB
/ui/poster 7.54 kB 56.87 kB
/ui/quality 8.42 kB 56.87 kB
/ui/quality-radio-group 9.59 kB 56.87 kB
/ui/seek-button 10.37 kB 56.87 kB
/ui/seek-indicator 11.95 kB 56.87 kB
/ui/slider 12.73 kB 56.87 kB
/ui/status-announcer 10.06 kB 56.87 kB
/ui/status-indicator 12.26 kB 56.87 kB
/ui/thumbnail 8.71 kB 56.87 kB
/ui/time 9.74 kB 56.87 kB
/ui/time-slider 14.15 kB 56.87 kB
/ui/title 7.24 kB 56.87 kB
/ui/tooltip 8.90 kB 56.87 kB
/ui/volume-indicator 12.32 kB 56.87 kB
/ui/volume-popover 14.17 kB 56.87 kB
/ui/volume-slider 12.11 kB 56.87 kB
🧩 @videojs/core — no changes
Entries (76)
Entry Initial Lazy
. 13.02 kB —
/dom 22.42 kB 56.87 kB
/vjsc 1.74 kB —
/i18n 3.23 kB 56.87 kB
/i18n/locales/all 34.97 kB —
/i18n/locales/ar 1.22 kB —
/i18n/locales/az 1.09 kB —
/i18n/locales/bg 1.29 kB —
/i18n/locales/bn 1.23 kB —
/i18n/locales/bs 1.00 kB —
/i18n/locales/ca 1.07 kB —
/i18n/locales/cs 1.07 kB —
/i18n/locales/cy 1.02 kB —
/i18n/locales/da 1006 B —
/i18n/locales/de 1.09 kB —
/i18n/locales/el 1.49 kB —
/i18n/locales/en 785 B —
/i18n/locales/es 1018 B —
/i18n/locales/et 1.05 kB —
/i18n/locales/eu 1.03 kB —
/i18n/locales/fa 1.22 kB —
/i18n/locales/fi 1.04 kB —
/i18n/locales/fr 1.07 kB —
/i18n/locales/gd 1.10 kB —
/i18n/locales/gl 1022 B —
/i18n/locales/he 1.14 kB —
/i18n/locales/hi 1.30 kB —
/i18n/locales/hr 1.02 kB —
/i18n/locales/hu 1.10 kB —
/i18n/locales/id 919 B —
/i18n/locales/it 1.01 kB —
/i18n/locales/ja 1.18 kB —
/i18n/locales/ko 1.14 kB —
/i18n/locales/lt 1.02 kB —
/i18n/locales/lv 1.09 kB —
/i18n/locales/mr 1.30 kB —
/i18n/locales/nb 987 B —
/i18n/locales/ne 1.29 kB —
/i18n/locales/nl 1.00 kB —
/i18n/locales/nn 987 B —
/i18n/locales/oc 1.08 kB —
/i18n/locales/pl 1.14 kB —
/i18n/locales/pt 1.03 kB —
/i18n/locales/pt-BR 1.03 kB —
/i18n/locales/pt-PT 1.01 kB —
/i18n/locales/ro 1.07 kB —
/i18n/locales/ru 1.40 kB —
/i18n/locales/sk 1.10 kB —
/i18n/locales/sl 1.04 kB —
/i18n/locales/sr 1.07 kB —
/i18n/locales/sv 1.01 kB —
/i18n/locales/te 1.32 kB —
/i18n/locales/th 1.29 kB —
/i18n/locales/tr 1.08 kB —
/i18n/locales/uk 1.41 kB —
/i18n/locales/vi 1.11 kB —
/i18n/locales/zh 1.02 kB —
/i18n/locales/zh-CN 1.02 kB —
/i18n/locales/zh-TW 1.02 kB —
/i18n/text/airplay 101 B —
/i18n/text/buttons 137 B —
/i18n/text/captions 93 B —
/i18n/text/cast 114 B —
/i18n/text/common 90 B —
/i18n/text/container 75 B —
/i18n/text/errors 285 B —
/i18n/text/fullscreen 98 B —
/i18n/text/live 126 B —
/i18n/text/menu 249 B —
/i18n/text/pip 101 B —
/i18n/text/playback 80 B —
/i18n/text/seek 105 B —
/i18n/text/slider 65 B —
/i18n/text/status 222 B —
/i18n/text/time 280 B —
/i18n/text/volume 133 B —
🏷️ @videojs/element — no changes
Entries (2)
Entry Initial
. 1.05 kB
/context 943 B
📦 @videojs/store — no changes
Entries (3)
Entry Initial
. 1.72 kB
/html 771 B
/react 365 B
🔧 @videojs/utils — no changes
Entries (13)
Entry Initial
/array 271 B
/dom 5.02 kB
/events 320 B
/function 386 B
/i18n 249 B
/jwt 176 B
/object 535 B
/predicate 297 B
/percent 281 B
/string 239 B
/style 212 B
/time 976 B
/number 199 B

📦 @videojs/media

Path Base initial PR initial Initial diff Lazy diff
/dom/dash 209.83 kB 3.28 kB -206.54 kB (-98.4%) —
/dom/wistia 60.09 kB 1.89 kB -58.20 kB (-96.9%) —
Entries (23)
Entry Initial
. 1.07 kB
/dom 121 B
/dom/dash 3.28 kB
/dom/wistia 1.89 kB
/dom/audio-host 1.10 kB
/dom/cloudflare 3.69 kB
/dom/custom-media-element 2.13 kB
/dom/dash 209.83 kB
/dom/google-cast 4.06 kB
/dom/hls-js 139.16 kB
/dom/media-host 1.20 kB
/dom/media-played-ranges 576 B
/dom/mux 162.88 kB
/dom/native-hls 5.25 kB
/dom/shaka 197.02 kB
/dom/spotify 3.58 kB
/dom/tiktok 3.57 kB
/dom/twitch 3.62 kB
/dom/video-host 1.39 kB
/dom/vimeo 10.62 kB
/dom/wistia 60.09 kB
/dom/youtube 4.25 kB
/media-tracks 2.05 kB
📦 @videojs/spf — no changes
Entries (10)
Entry Initial
. 4.55 kB
/dom 6.60 kB
/hls 22.06 kB
/media-tracks 504 B
/hls-background-video 15.89 kB
/hls-audio 19.82 kB
/hls-video 25.85 kB
/mux-audio 20.76 kB
/mux-background-video 15.89 kB
/mux-video 26.67 kB

ℹ️ How to interpret

Each entry is independently bundled, minified, and brotli-compressed. Initial size includes its static import graph; lazy dynamic chunks are reported separately.

Entries are not additive because their dependency graphs overlap. Preset rows represent realistic combined bundles.

Changes of 300 B or less across initial, lazy, and total size are collapsed, not discarded.

Run pnpm size locally to check current initial sizes.

This branch was successfully deployed

1 active deployment
Preview — 8d0a3b90 Deployed Sep 2, 2026 by vercel[bot]
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants