Simple Lazy Load Videos

الوصف

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.

لقطات الشاشة

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

التنصيب

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

الأسئلة المتكررّة

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

المراجعات

5 مايو، 2023
Works like a charm. Thanks for making it!
21 فبراير، 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.
إقرأ جميع المراجعات 4

المساهمون والمطوّرون

“Simple Lazy Load Videos” هو برنامج مفتوح المصدر. وقد ساهم هؤلاء الأشخاص بالأسفل في هذه الإضافة.

المساهمون

لقد تم ترجمة ”Simple Lazy Load Videos“ إلى لغتين. شكراً إلى جميع المُترجمين لمُساهماتهم.

ترجمة ”Simple Lazy Load Videos“ إلى لغتك.

مُهتم بالتطوير؟

تصفّح الشفرة، تحقق من مستودع SVN، أو الاشتراك في سجل التطوير بواسطة RSS.

سجل التغييرات

1.5.1

  • Fix Notice “Function _load_textdomain_just_in_time was called incorrectly”
  • Fix visibility of some methods
  • Remove grunt-spritesmith
  • Update Grunt packages
  • Tested up to WordPress 6.7.1

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.