Background video acceleration

Background video on a landing page is often slow to start and bogs down the load speed of the entire page. SmartVideo offers the unique ability to accelerate your background videos by including a simple option in our Javascript snippet.

At the end of "youtube: true", include a comma, then add "videotag: true" on the very next line.

Here's an example with "videotag: true" included.

<script data-cfasync="false">
    var swarmoptions = {
        swarmcdnkey: "<<publicAPIKey>>",
        autoreplace: {
            youtube: true,
            videotag: true
            
        }
    };
</script>
<script data-cfasync="false" src="//assets.swarmcdn.com/cross/swarmdetect.js"></script>

If you decide that you want all of your video accelerated but not your background video, simply change "videotag: true" to "videotag: false"