Delay video on WordPress

Need to delay loading video on WordPress?

The media is an effective strategy that excites your content.

Things such as pictures and videos can really make your words on the website vivid.

The only disadvantage is that the media documents are very large, and the loading time is longer than the text.

If you have been using WordPress for some time and have been emphasizing speed optimization and ensuring that all web pages are loaded as fast as possible, then you may have heard of delay loading.

What is a delay?

Delay loading is the actual load of delay content until it can be visible in the visitor’s viewport. The viewport is the browser area where the visitors are watching your webpage.

There are many available WordPress plug -in allowing you to delay loading images on each page of the website. This means that if your picture is below the webpage, they will not be fully loaded before the visitors contact the area of \u200b\u200bthe page.

This process is very powerful in accelerating the loading time of URL in the website.

There are two main factors when loading the timely web pages related to actual spending. This is loading time and full loading time.

See the following instructions to understand the difference between them.

What is loading time?

ONLOAD TIME calculation page processing and all resources (such as images, CSS, and other functions) on the specific page have completed the speed when ing.

Once completed, the page will trigger Window.onload to complete the speed result. The loading time is the true expression of the correct loading speed of your website.

However, one of the main defects found in the online time is that certain elements of the page loaded may not be loaded in time before triging the event. For example So it is loaded in a specific order.

These variables will cause the page loading time to be inconsistent, and may even report that your website is even more wrong than actually. Fast/slower.

What is full load time?

According to our understanding of \”loading time\”, \”complete loading time\” uses a completely the same process to record the speed of the page, but it will increase the additional two seconds after the trigger is triggered by the \”load\” to ensure that there is no further further Network activity. The reason behind this is to ensure that it is more consistent with testing.

One possible problem that fully loads time testing is that this event will only be triggered when the page completely stops loading content (including advertising and other functions).

Therefore, if your website has been loaded before the deadline and can still be used, the testing tool will still wait for the entire site to stop loading data, which may cause the speed test results to be inconsistent.


Can you completely control the loading time?

The following is a good simple graphic, which is used to illustrate all parts that need to be considered when accessing the website and all parts that determine the loading speed.

LazyLoad Video on WordPress As you have from the above above above above, As you can see in this picture, some things you can’t control. For example, the speed of the Internet service provider who visits your website is completely unprepared at all.

If you want to increase the speed of the WordPress website as much as possible, you need to focus on what you can control.

WordPress speed optimization you can control


The hosting environment WordPress Speed Optimization

Software Update

    Active theme

  1. Activity plug -in

  2. Content optimization

  3. Let us return to the delay loading video on WordPress
  4. Therefore, in the above list of WordPress speed optimization, you can control the last item in the list is the content optimization.

This means to ensure that everything on your website is optimized so that it can be loaded as soon as possible without changing any function or content display.


Let’s take a look at this in detail, let us show you a traditionally embedded video (as most people do on their website) and a video set to delay loading is in their website. Speed \u200b\u200bdifferences.

The experiment started from here We continue to create a default WordPress installation and create a separate page in it. There is an embedded YouTube video on a page. This video uses the native WordPress core to embed it. It only needs to be placed in the Gutenberg editor to the gutenberg editor. This will generate embedded YouTube videos on the page.

The second page is the same video, but it sets up delay loading, which means that the actual video code will not start and start running before the visitor presss the play button. Let’s take a look at the amazing differences between the two processes displayed in WordPress content.

Embedded video page surface example

Traditional video embedded

Lazy Load Video on WordPress The figure below is the speed test performed on the GTMETRIX of the traditional YouTube video pages.

Please pay close attention to the loading time and full loading time below.

Speed \u200b\u200bload test

]

Speed \u200b\u200bload test

LazyLoad Video on WordPress Embedded Video
The figure below is a list of processes that occur during this page. Please pay attention to the total number of requests.

Lazy Load 2 Speed \u200b\u200btest waterfall

LazyLoad Video on WordPress Embedded Video Waterfall
Traditional videos embedded in
below It is the speed test performed by the GTMETRIX on the page that delay loading the embedded video.

Please pay close attention to the loading time and full loading time below. The loading time is less than 1 second, compared with the traditional embedded video for more than 1 second.

Compared with the full -load time of more than 3 seconds in the traditional video, the full load time is less than 1 second.

Lazy Load Video on WordPress
Speed \u200b\u200bload test

Speed \u200b\u200bload test test

You can see in the speed test waterfall below. The request called when the page is loaded is reduced by 21 because we delay the video embedded. LazyLoad Video on WordPress Video
One of the best ways to speed up any webpage is to reduce requests. The more required for the page loading, it means it takes longer.

The script and style of loading the video player will still happen, but until the visitors click the video The play button on the top occurs. Lazy Load
This is very powerful, because imagined that if the visitor comes to your page and even has never played a video, this means that you are loading resources that your visitors will never use.

Speed \u200b\u200btest waterfall

Now you know the delay loading on WordPress The video is very good … What is the next step? We have previously explained that there are many WordPress plugins that allow you to delay you loading images on the website, but not many plug -ins can allow you to perform this operation for the video. On your WordPress website, the only actual free plug -in delayed video is video delayed loading plug -in and A3 delay loading. You can learn more about the following pictures.

LazyLoad Video on WordPress Video Waterfall 1
There are some additional speed optimization plug -in indeed containing this function, which can allow allow You delay loaded YouTube videos or iframe. See the name of these plugins below.

Swift Performance Professional Edition

WP Rocket

Lazy Load for Videos

]

The plug -in will not delay loading video on WordPress

Lazy Load for Videos 1 In most cases, you will be able to use one of the plug -in mentioned above to delay loading the video on WordPress. However, in some cases, you try to delay the loaded content with these plug -inThe function of supply is not compatible.

These delayed loading WordPress plug -in for video is usually only integrated with YouTube and Vimeo. You may be using many other video custody solutions.

This is where we provide an alternative solution. It allows you to obtain any iframe code fragment and turn it into a delayed loading masterpiece on your website.

Super cool free tools, you can delay loading video on WordPress There is a super cool and easy to use online tool. Set the code fragment of the delay loading.

This fee is called


iframely

, you can at https: // iframely. COM/EMBED free use

The picture below is the screenshot of the embedded tool iframely, it will help you generate the embedded code needed to be placed on your website and delay the loading video on WordPress.


iFramelyly delayed loading embedded tool

Just end We hope that this article will help you and help you understand that when you decide to delay loading any video you use in the content Increased speed.

If you have any questions about the content of the discussion here, please comment at any time.

Author:

Leave a Reply

Your email address will not be published. Required fields are marked *