Prevents specific videos from being downloaded on mobile devices.

Usage no npm install needed!

<script type="module">
  import videoManager from '';


Background Video Manager

A JavaScript library for optimizing html pages with video content that prevents videos from loading on mobile devices.


  1. In the video node add the following attributes:
    • class="optimize-video"
    • poster="poster source" (image displayed on mobile)
    • data-src="video source"
  2. Import the js library at the end of the body node.