Simple Lazy Load Videos

Opis

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.

Slike ekrana

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

Instalacija

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

ČPP

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]

A shortcode can contain several additional attributes:
thumbnail – alternate thumbnail URL, in case the auto-generated one doesn't suit you
play – URL with an alternate image for the Play button, in case you're not happy with the default button
hide_play – if you give any value to this attribute, such as “1”, then the Play button will not be displayed

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]' ); ?>

Recenzije

5. Maja 2023.
Works like a charm. Thanks for making it!
21. Februara 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 4 reviews

Saradnici i programeri

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

Doprinositelji

“Simple Lazy Load Videos” je prijeveden na 2 dijalekta. Zahvala prevodiocima za njihov doprinos.

Prevedi “Simple Lazy Load Videos” na vaš jezik.

Zainteresirani za razvoj?

Pregledajte kôd, pogledajte SVN spremišteili se pretplatite na dnevnik razvoja od RSS.

Zapis promijena

1.5.0

  • Add shortcode attributes: thumbnail, play, hide_play
  • Update FAQ
  • Update Grunt packages
  • Tested up to WordPress 6.6.2

1.4.1

  • Fix missing jQuery error

1.4.0

  • Add BuddyPress support
  • Tested up to WordPress 6.4.2

1.3.0

  • Remove styles from admin_enqueue_scripts
  • Remove old admin styles from CSS
  • Replace dart-sass to sass
  • Change esversion in jshint config to 8
  • Update packages
  • Fix svg
  • Fix WPCS
  • Tested up to WordPress 6.4.1

1.2.0

  • Add filters: sllv_youtube_button, sllv_vimeo_button, sllv_video_template
  • Remove jQuery from depends scripts
  • Rename CSS & JS handles
  • Tested up to WordPress 6.3

1.1.0

  • Refactoring
  • Add GitHub link to plugin meta

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.