Lazy Load for Videos
This plugin improves page load time and increases your Google PageSpeed Score. It works with oEmbed and replaces embedded Youtube and Vimeo videos with a clickable preview image. By loading videos only when the user clicks on the preview image, no unnecessary JavaScript is loaded. Especially on sites with many embedded videos this will make your visitors happy. Additionally, all Youtube videos are loaded in a privacy-enhanced mode using the “https://www.youtube-nocookie.com” embed URL. This plugin works for your existing YouTube and Vimeo blocks. No vendor lock-in and no custom shortcodes: Easily turn the plugin on and off anytime. Plugin review with speed test results on WP Tavern. Developers can contribute on Github. More about the author on kweber.com. Some additional features: Display video titles on preview images Display privacy disclaimer on top of preview images (e.g. for GDPR compliance) Pre-roll and post-roll advertisements: Convert all videos into a playlist and automatically add your corporate video, product teaser or another video advertisement to every video. (Great for branding and video ads!) Hide annotations such as “subscribe to channel” to avoid distractions Add custom CSS via the plugin’s admin panel Choose custom colour for your Vimeo player Hide controls from Youtube player Hide information like the video title and uploader when the video starts playing Even lazy load videos in text widgets (Youtube only) Choose between thumbnail sizes (standard or cover) Choose from several play button styles Choose the traditional red or the alternative white progress bar for the Youtube video player Don’t show related videos at the end of your videos Works with WordPress Multisite and many plugins such as TablePress Future features: Set a custom preview image per video Track how often the videos have been loaded with Google Analytics … YOU want a new feature RIGHT NOW? Please implement it yourself and contribute on Github, and I’ll publish your enhancements to the official WordPress directory. Translators Serbian (sr_RS) – Ogi Djuraskovic Spanish (es_ES) – Carlos Villavicencio If you have created your own language pack, or have an update of an existing one, you can send me your gettext PO and MO so that I can bundle it into my plugin. You can download the latest POT file from here.
Load Combined Core Block Assets
This is a workaround for sites experiencing any issues with the ability introduced in WordPress 6.9 to load block styles on demand in classic themes. The known issues have been fixed during the 7.0 release cycle with the following commits: r61076: Script Loader: Fall back to hoisting late-printed styles to end of HEAD if wp-block-library is not enqueued. r61122: Script Loader: Load block styles on demand in classic themes even when wp-block-styles support is absent. r61174: Script Loader: Improve hoisted stylesheet ordering (in classic themes) to preserve CSS cascade. r61554: Script Loader: Preserve original CSS cascade for classic themes when hoisting late-printed styles. r61945: Script Loader: Refine hoisted stylesheet ordering to preserve original CSS cascade in classic themes. If running a classic theme (i.e. not a block theme), this plugin filters should_load_separate_core_block_assets to be false. This has the effect of reverting a change introduced in 6.9 where classic themes now load separate core block assets on demand by default. Note that this plugin should be considered temporary until any issues are resolved in 7.0. At any time, you can test whether any issues remain by adding ?should_load_separate_core_block_assets=true to any frontend URL; this restores the default behavior in WP 6.9. This workaround should be temporary because there are performance benefits to loading separate core block assets. They can be loaded on demand just when they are used, as opposed to loading the large single combined wp-block-library stylesheet. Loading separate block styles on demand reduces the amount of CSS which should improve page load time. Nevertheless, as explained in the dev note, some sites may be built in a way that fundamentally does not work with loading separate block styles on demand. For these sites, this plugin is available to retain the old behavior.