SlimFast – YouTube Lazyloader

SlimFast – YouTube Lazyloader Install Statistics

0
100%
Today: 0 Yesterday: 0 All-time: 793 downloads
SlimFast – YouTube Lazyloader Icon

Try plugin: SlimFast – YouTube Lazyloader

We'll create fresh WordPress site with SlimFast – YouTube Lazyloader installed. You have 20 minutes to test the plugin after that site we'll be deleted.

Takes ~10 seconds to install.

About SlimFast – YouTube Lazyloader

This minimalist lazyloader makes your video pages slimmer and faster. SlimFast replaces heavy YouTube iframes by their thumbnail. View a demo.

1


0


0


0


0

updated: 4 years ago
since: 4 years ago
author: ThinkSmall

Description

This minimalist lazyloader makes your video pages slimmer and faster. SlimFast replaces heavy YouTube iframes by their thumbnail. View a demo.

How to use it?

Paste the url of the YouTube video in a page (for example https://youtu.be/neV3EPgvZ3g). WordPress will convert it into a video iframe. SlimFast will take it from there and replace the iframe by the video thumbnail and a button to play the video. This will also work for all pre-existing videos embedded this way.

What is lazyloading and why is it important to use it on YouTube videos?

Lazyloading is a technique to make your pages load faster, by only loading required elements when the visitor requests them. The page speed is a key element in Google’s algorithm to rank pages.

Embedding a YouTube iframe will load a lot of scripts for every single video and will slow down your page, especially if your visitor doesn’t have a top connection. Hence the need for lazyloaders!

2 types of lazyloaders exist:

  • Those who load the video iframe when the visitor scrolls down to the point where he sees the video on his screen.

  • Those who load the iframe after the visitor clicks the Play button. SlimFast is one of those. We believe it is the best approach to let your visitor decide if he wants to click or not, and only load the iframe if he clicks.

See a comparison of performances with/without SlimFast in the “Screenshots” section.

Why is SlimFast better than other YouTube lazyloading plugins?

  1. Because they require 2 click to play a video: 1 to load the iframe, 1 to play it! This is actually the reason why we built this plugin: SlimFast loads & play videos with 1 single click, even on mobile! Think about your User Experience, it’s crucial. Your visitors are frustrated if they have to click twice on that Play button to launch a video!

  2. Because it doesn’t use any custom shortcode. WordPress already recognises YouTube videos when you paste their urls. SlimFast takes it from there. Why bother with shortcodes? Think long term! Shortcodes are painful if you decide to drop a plugin. If you’re unhappy with SlimFast, just deactivate it and all your YouTube videos will be back to their default iframes.

  3. Because we’ve made it as light as possible! The plugin only adds 3 small scripts (YouTube iframe API, 1 custom javascript and 1 css) to your pages containing YouTube videos, for an extra weight of 4KB only. And nothing will be loaded if your pages don’t have YouTube videos! This is why you’ll only see 1 custom setting. We decided to sacrifice all settings (such as playlists support and video titles) that would add unnecessary weight. How many options do you really need on your WordPress plugins?

Is it possible not to use SlimFast on specific videos?

Of course! Juste paste the iframe code provided by YouTube (for example <iframe width= »560″ height= »315″ src= »https://www.youtube.com/embed/neV3EPgvZ3g » frameborder= »0″ allow= »accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture » allowfullscreen></iframe>) and SlimFast will leave it intact. Do it if you feel like certain videos deserve features we’ve cut.

What is in the code?

  • Just 3 little scripts (YouTube iframe API, 1 custom javascript and 1 css).
  • These will be loaded on your pages containing YouTube videos for an extra weight of 4KB only. Nothing will be loaded on pages that don’t host YouTube videos.
  • No JavaScript library such as jQuery is used to ensure a maximum compatibility with all themes.

Demo

View a demo.