Defer Youtube Videos

Divi Nitro

Defer YouTube/Vimeo videos

Having a YouTube or Vimeo video on your website is such a great tool speak to your visitors, the main issue is the number of scripts it loads, this with trying to load the adverts on YouTube or just the JS files loaded by Vimeo or YouTube, this slows down the load of the page. Add over 10 videos and this becomes a big problem with the load time.

We have added a custom module called “Defer YouTube/Vimeo Video” – this module will ONLY load the video and scripts when the visitor interacts with the clip and presses play, therefore not impacting the load time. 

It used to only defer YouTube, but now we defer Vimeo too.

Video documentation