| Name | Modified | Size | Downloads / Week |
|---|---|---|---|
| Parent folder | |||
| README.md | 2026-08-30 | 1.6 kB | |
| v2.0.0 source code.tar.gz | 2026-08-30 | 213.6 kB | |
| v2.0.0 source code.zip | 2026-08-30 | 235.6 kB | |
| Totals: 3 Items | 450.9 kB | 0 | |
The package is named for jQuery in three places it has not needed for years: the
plugin itself, deprecated since 1.2.0, and the jquery. prefix on both built
files. All three are gone. The factory and every option, event, method and
data-vbg-* attribute are unchanged, so upgrading is changing paths and
replacing one call.
Removed
- The jQuery plugin.
jQuery('[data-vbg]').youtube_background(params)becomesnew VideoBackgrounds('[data-vbg]', params). It was the only thing that setwindow.VIDEO_BACKGROUNDS; nothing sets it now, so keep the instance the constructor returns.
Changed
- The built files are renamed and live in
dist/.jquery.youtube-background.jsisdist/youtube-background.jsandyoutube-background-experimental.jsisdist/youtube-background-controls.js, minified files and source maps alongside them.import { VideoBackgrounds } from 'youtube-background'is untouched — it resolved tosrc/before and still does; onlyrequire()and the CDN see the new paths.
Added
- A stylesheet for the controls,
dist/youtube-background-controls.css, also reachable asyoutube-background/controls.css. The look of the seek bar and of the buttonsplay-buttonandmute-buttoninject only existed inside the demo page before, so anyone using the controls wrote it again from scratch. It is optional; the classes work without it. - A
youtube-background/controlssubpath, so the control classes can be imported from a bundler instead of read offwindow.
Full Changelog: https://github.com/stamat/youtube-background/compare/v1.2.1...v2.0.0