Açıklama
If you care about performance, privacy, and user experience, this block is for you.
This plugin enhances the default YouTube and Vimeo blocks—including any existing blocks—and changes their behavior to only load the video thumbnail until a visitor chooses to play the video.
Features
- Load YouTube videos faster (uses the
lite-youtube
custom-element) - Load Vimeo videos faster (uses the
lite-viemo
custom-element) - Loads YouTube videos from nocookie.youtube.com for enhanced privacy
- Works without JavaScript (shows link to video instead in a player-like design)
- No plugin lock-in! Automatically improves the core Embed block. Turn the plugin off and the behavior goes back to the WordPress default.
Want more features?
I’m considering building a PRO version with the potential following features:
- Options to set a custom start and end time
- Custom thumbnail images for videos
- Custom aspect ratios for videos
- Support for YouTube shorts
- Control whether to load video from nocookie.youtube.com or not
- Adjust the image quality of the thumbnail
- Support for playlists, not just single videos
- Full support for all YouTube query parameters (https://developers.google.com/youtube/player_parameters)
- Classic Editor / [embed] shortcode support
If enough people express interest, I’ll build it! Let me know if you’re interested!
Contribute on Github
Enhanced Embed Block is on Github for pull requests and bug reports.
Software
This plugin uses the lite-youtube
custom-element under the MIT license. Thank you to Paul Irish and Justin Ribiero for their work on that project.
This plugin uses the lite-vimeo
custom-element under the MIT license. Thank you to Chris Shaw for their work on that project.
Yükleme
- From your WordPress site’s dashboard, go to Plugins > Add New.
- Search for “Enhanced Embed Block for YouTube and Vimeo”
- Click “Install”
- Click “Activate”
- That’s it! You’re done! There are no plugin settings and the enhancements immediately apply to all YouTube video embeds.
SSS
-
Does this create a new block?
-
No. It enhances the default WordPress Embed block for YouTube and Vimeo videos.
-
Does it automatically enhance all my YouTube and Vimeo embeds?
-
It works for any embeds using the YouTube or Vimeo variations of the Embed block. Embeds using the [embed] shortcode or literal YouTube embed code in HTML are not enhanced. Using the core WordPress Embed block is highly recommended!
-
Why don’t Google and Vimeo load all their videos this way by default?
-
Great question! It sure seems like they should. If I had to guess, they are prioritizing usage tracking over fast load times and privacy.
-
What happens if I deactivate the plugin?
-
Your embed blocks go back to how they were before.
-
Does this support the Classic Editor / the [embed] shortcode?
-
Not right now. If you’d pay for a PRO version with this feature, let me know.
İncelemeler
Bu eklenti için herhangi bir değerlendirme bulunmuyor.
Katkıda Bulunanlar ve Geliştiriciler
“Enhanced Embed Block for YouTube & Vimeo” açık kaynaklı yazılımdır. Aşağıdaki kişiler bu eklentiye katkıda bulunmuşlardır.
Katkıda bulunanlar“Enhanced Embed Block for YouTube & Vimeo” eklentisini dilinize çevirin.
Geliştirmeyle ilgilenir misiniz?
Kodu görüntüleyin, SVN deposuna göz atın ya da RSS ile geliştirme günlüğüne abone olun.
Değişiklik Kaydı
1.2.0 (14 May 2025)
- Add support for Vimeo!
- Upgrade
lite-youtube
to 1.8.1 (includes new native support for fallback thumbnail formats and sizes) - Further performance improvements to load script asynchronously and only load styles when needed
- Fix undefined $params fatal error when trying to extract time code from YouTube URLs
- Code quality improvements
1.1.0 (11 July 2024)
- Fix missing file on WordPress.org version of plugin due to misconfigured Github deployment
- MAJOR CHANGE: The default poster image is now the highest quality possible. There is a new
eeb_posterquality
filter to change that, if desired. (#5) - Add experimental patch to the
lite-youtube
web component that detects missing YouTube poster images and fallsback to different format / lower quality (#4) - Add
!important
to all CSS styles to improve theme compatibility. Add custom properties to make color changes to fallback styles easier. (#8) - Add
eeb_nocookie
filter to customize domain for loading the YouTube iframe (defaults to nocookie) (#7) - Don’t use lite-youtube embed in feeds (#9)
- Props to @cbirdsong for numerous issues on Github that led to most of these changes
1.0.0 (22 April 2024)
- Initial release to the WordPress repository!