Player Features & Analytics

How to accelerate background videos with SmartVideo

Updated July 25, 2026

Slow background videos can hurt your page’s load speed. SmartVideo can accelerate them automatically. Here’s how to set it up.

Accelerating plain <video> tags with videotag is available on the Growth and Pro plans. See plans and pricing.

 

For WordPress Users:

To auto-convert your videos, go to the SmartVideo plugin Settings and toggle on Optimize background videos & existing videos

Note: This may conflict with some themes, so it’s a good idea to test it.smart video bg vid.gif

 

 

For Non-WordPress Users (Manual Install):

To auto-convert all your background videos that are embedded with <video> tags, use the configuration tool in the Swarmify Dashboard to reconfigure the Swarmify snippet to include Background Video Conversions.

If you want to edit the snippet manually, add the line videotag: true right after youtube: true, as shown below.

<script data-cfasync="false">
    var swarmoptions = {
        swarmcdnkey: "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
        autoreplace: {
            youtube: true,
            videotag: true // <-- Add this line
        }
    };
</script>
<script data-cfasync="false" src="https://assets.swarmcdn.com/swarmcdn.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.

Still have questions? We’re here to help! Just click the support button on this page, and our team will assist you. 💬

Unlock every SmartVideo feature

Turn on ads, background video, auto-conversion, and analytics from one dashboard.

14-day free trial · No charge until day 15