[Spott] Lazy load of video


Lazy loading
or asynchronous loading means that the big chunk of the data will only load when your end users need it. This means that less data will be loaded when first loading the webpage, and is especially handy when serving a lot of videos on the same page.

 

Lazy loading for Spott videos can be set up quite quickly. For the moment, it requires a small bit of code tweaking. 🤓

Enabling lazy loading

When you've already generated an embed code, you simply have to add a parameter to it. The parameter depends on whether you are using Javascript or iFrame embeds, both are listed here.

 

Javascript embed

To your Spott video Javascript embed, add the following parameter marked in bold.


iFrame embed

To your Spott video iFrame embed, add the following parameter marked in bold.

The lazy loading is now enabled; if you have some technical knowledge, you can make sure it's working by opening the Network tab in your browser and running the two scenarios side by side.