Giter VIP home page Giter VIP logo

async-media-load's Introduction

async media load

This is a simple jQuery plugin that allows you to load media elements (Youtube, Vimeo) only when user requests them.

Why do we need this?

Developing responsive websites is getting more common every day, one issue we frequently find ourselves dealing with is the display of several media elements in a single page.

Adding a huge list of flash audio or video embeds is never a good idea performance wise because you end up it a huge ammount of flash instances running even ehen the user has not requested to load any video. This makes the browser or the whole device to start responding slower and in some scenarios it can get really slow for something as simple as scrolling down the document.

As a solution we came up with this plugin, your markup can be as simple as a list of links that will be replaced by rich media content only upon user request.

How does async media load works?

This plugin will act on plain links pointing to rich media content and it will do two step replacement for them.

  1. It will find links and replace them with a lightweight placeholder.
  2. Upon click on the media placeholder, the plugin will replace it with a full media embed.

How can I use it?

For an example on how to use it view the index.html file in the test folder.

async-media-load's People

Contributors

mantish avatar anabelle avatar

Watchers

John Acosta avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.