A JavaScript Library For Optimizing HTML Pages With Video Content | js-vido

js-vido – JavaScript Video Download Optimizer is a JavaScript library to optimize HTML pages with video content that prevents videos from being uploaded to mobile devices.

Video download optimizer that prevents videos from being uploaded automatically to mobile and shows poster images instead.

Prevents videos with the “video enhancement” category from downloading to mobile devices by displaying poster images instead. This is done by generating the source element of the video node with the data-src attribute only in the event that the device being used is a laptop or desktop computer.

An instance where this function can be useful is verified by using the auto-played videos used in the backgrounds of webpages, since autoplay does not work on mobile devices, the video will download unnecessarily, which slows down the page loading and consumes data cell phone.

How to make use of it:

1. Load the primary JavaScript within the doc.

<script src="js-vido.js"></script>

2.  Embed a video into your doc utilizing data-src the attribute.

<video class="optimize-video" autoplay muted loop poster="poster.jpg" data-src="1.mp4" data-type="video/mp4"></video>

Prevent Video From Downloading On Mobile, Video Download Optimizer Plugin/Github


See Demo And Download

Official Website(Ariel-MN): Click Here

This superior jQuery/javascript plugin is developed by Ariel-MN. For extra Advanced Usages, please go to the official website.

Related Posts

Confetti-Falling-Animation-Effect-party

Confetti Falling Animation Effect In JavaScript | party.js

Party.js is a JavaScript library to brighten user site experience with visual effects! Celebrate success with dom confetti! The library is written in TypeScript and compiled into…

jquery-cookie-consent

Simple jQuery Cookie Consent Plugin

jquery.cookie-consent is a simple jQuery plugin to request consent to use cookies. An easy-to-use and highly customizable cookie consent bar that informs your visitors of the use…

Timepicker-Plugin-for-jQuery

Timepicker JavaScript Plugin for jQuery Inspired by Google Calendar

jquery.timepicker is a lightweight jQuery timer plugin inspired by Google Calendar. It supports both mouse and keyboard navigation and weighs 5.5KB minified and compact. Features: Highly customizable…

angular-ngx-carousel-slider

A Lightweight, Touchable, and Responsive Angular Universal Carousel Library

ngxCarousel is a lightweight, tactile, and responsive library for creating an angular carousel. No dependencies, no more hammer. Must Read: Angular Responsive Image Slider With Lightbox Popup…

vue-fullpage-modal

First Mobile Full-screen Modal Popup Library For Vue

Vue full-page modal is a responsive, mobile-compatible, screen-friendly pop-up library for Vue.js. Must Read: Modal Component Is Written in Vanilla JS | ensemble Modal How to make…

random-number-picker

Generate a Random Number Picker In Vanilla JavaScript

Random Number Picker is a Vanilla JS-based number picker that allows you to generate a random number within a specified range. Must Read: Generating Lottery Numbers Using…