Simple Lazy Load Videos

Description

The plugin reduces page load time and increases your Google PageSpeed score.

It replaces the embedded Youtube and Vimeo videos with a video preview image, third-party CSS & JS are downloaded only after a click.

Screenshots

  • Admin settings on the Settings -> Simple Lazy Load Videos screen.

Installation

  1. Upload the plugin to your WordPress site
  2. Activate the plugin in the Plugin dashboard

FAQ

How does this plugin work?

Instead of loading the iframe of your video on page load, it only loads the video preview image.
This will work automatically for all videos that have been inserted through the standard page editor.

Is it possible to insert a video using a shortcode?

Yes, you can use the [sllv_video] shortcode using a link to a YouTube or Vimeo video as its value, like:

[sllv_video]https://youtu.be/GywDFkY3z-c[/sllv_video]

Can I embed a lazy loaded video into my template file?

Yes, but you cannot insert a shortcode [sllv_video] into your template file directly.
You will need to pass the code into apply_shortcodes() function and display its output like this:

<?php echo apply_shortcodes( '[sllv_video]https://youtu.be/GywDFkY3z-c[/sllv_video]' ); ?>

Reviews

21. Februar 2022. 3 replies
First of all, thanks for the plugin! It works as intended and is written very clean and clear. ** Review updated to 5 stars after the adding the thumbnail size settings. It's perfect now.
Read all 3 reviews

Contributors & Developers

“Simple Lazy Load Videos” is open source software. The following people have contributed to this plugin.

Contributors

“Simple Lazy Load Videos” has been translated into 2 locales. Thank you to the translators for their contributions.

Translate “Simple Lazy Load Videos” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.

Changelog

1.0.0

  • Add Gutenberg support
  • New oEmbed template logic
  • Do template replacement only on frontend
  • Fix Vimeo thumbnail

0.9.0

  • Stop all other video or HTML media if new video starts playing
  • Stop all video if HTML media starts playing
  • Code refactoring
  • Fix documentation standards

0.8.2

  • Add a check if the link in the shortcode is a video link

0.8.1

  • Fix the missing file problem

0.8

  • Add shortcode to display SLLV in theme templates
  • Update Frequently Asked Questions
  • Small code refactor

0.7.6

  • Fix editor styles
  • Add margins between videos

0.7.5

  • Add some data clearing

0.7.4

  • Fix aspect ratio in some themes
  • Fix „PHP Warning: Undefined property: stdClass::$title“ if title is empty for any reason

0.7.3

  • Repair params in embed youtube
  • Delete plugin settings if uninstall
  • Сode refactoring
  • Tested up to WordPress 6.1

0.7.2

  • Сode refactoring

0.7.1

  • Made it possible to change Vimeo thumbnail size

0.7.0

  • Сode refactoring
  • Added plugins options page
  • Made it possible to change YouTube thumbnail size

0.6.8

  • Fixed styles for WPBakery Page Builder

0.6.7

  • Fixed styles for WPBakery Page Builder

0.6.6

  • Fixed some broken styles

0.6.5

  • Fixed styles for Divi Builder

0.6.4

  • Fixed some PHP warnings that occurred during actions with the plugin

0.6.3

  • Removed Ukrainian translation since it is now available at translate.wordpress.org

0.6.2

  • Removed native Lazy Loading

0.6.1

  • Removed Russian translation since it is now available at translate.wordpress.org
  • Updated Ukrainian translation

0.6

  • Changed CSS & JS fileversion, now it is plugin version
  • Сode refactoring

0.5.3

  • Some small fixes

0.5.2

  • Fixed some bug with image width & height

0.5.1

  • Fixed compatible with Visual Composer
  • Updated ukrainian translate
  • Improved compatibility

0.5

  • Fixed fatal error on some installs
  • Fixed file_exists check for scripts & styles

0.4

  • Native Lazy Loading for images
  • Some small fix

0.3.4

  • Improved compatibility
  • Fixed grammar error

0.3.3

  • Translated to Ukrainian and Russian

0.3.2

  • Changed css prefix for greater compatibility

0.3.1

  • Fixed compatible with language packs (again)

0.3

  • Fixed compatible with language packs
  • Some small fix

0.2

  • Update play button for Vimeo version
  • Fix in WP Dashboard
  • Added multilang support

0.1

  • Initial release.