github.com-paulirish-lite-youtube-embed_-_2019-11-22_09-40-47

github.com-paulirish-lite-youtube-embed_-_2019-11-22_09-40-47

Posted by

Download
ITEM TILE – File Size: 13.5K

A faster youtube embed.

Lite YouTube Embed

Renders faster than a sneeze.

Provide videos with a supercharged focus on visual performance.This custom element renders just like the real thing but approximately 224X faster.

Comparison

| Normal YouTube embed | lite-youtube ||—|—|| Screen Shot 2019-11-03 at 5 23 50 PMScreen Shot 2019-11-03 at 5 21 05 PMScreen Shot 2019-11-03 at 5 19 35 PM | Screen Shot 2019-11-03 at 5 23 27 PMScreen Shot 2019-11-03 at 5 20 55 PMScreen Shot 2019-11-03 at 5 20 16 PM |

Basic usage

To use the custom embed you will need to:

  1. Include the stylesheet within your application
  2. Include the script as well
  3. Use the element lite-youtube markup and scripting
  4. Be happy that you’re providing a better user experience to your visitors

“`html

“`

Pro-usage

Use this as your HTML, load the script asynchronously, and let the JS progressively enhance it.

html

More coming soon.

To restore the repository download the bundle

wget https://archive.org/download/github.com-paulirish-lite-youtube-embed_-_2019-11-22_09-40-47/paulirish-lite-youtube-embed_-_2019-11-22_09-40-47.bundle

and run:

 git clone paulirish-lite-youtube-embed_-_2019-11-22_09-40-47.bundle 

Source: https://github.com/paulirish/lite-youtube-embed
Uploader: paulirish
Upload date: 2019-11-22