Skip to content

Commit

Permalink
remove gulp and rollup and use webpack instead
Browse files Browse the repository at this point in the history
  • Loading branch information
jmartsch committed Feb 5, 2020
1 parent 76adf4f commit 85ae7d7
Show file tree
Hide file tree
Showing 7 changed files with 69 additions and 48 deletions.
20 changes: 19 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ Dependency-free library for lazyloading iframes. [Demo](https://vb.github.io/laz

## Why?

Because embedded content takes time to load.
Because the JavaScript loaded from the external providers is big and takes much time to load. This slows down your site, even if your visitors don't want to see your beautiful videos.

For example here are the number of requests and filesizes of some well-known services.

* **Youtube** – 11 requests ≈ 580kb
* **Google maps** – 52 requests ≈ 580kb
Expand All @@ -20,6 +22,8 @@ Lazyframe comes with brand-like themes for Youtube, Vimeo and Vine.
2. [Import](#import)
3. [Initialize](#Initialize)
4. [Options](#options)
5. [Changelog](#changelog)
5. [Compile from Source](#compile-from-source)

### Install

Expand Down Expand Up @@ -159,6 +163,20 @@ The ratio of the lazyframe. Possible values: 16:9, 4:3, 1:1

Set this to true if you want the resource to execute (for example video to play) when the element is in view.

## Changelog
* v1.1.9 remove gulp and rollup and use webpack instead
* use Babel 7
* add changelog to README
* add Compile from source instructions
* v1.1.8 add rel=0 parameter to YouTube videos

## Compile from source
* clone the github repo
* cd into the cloned directory
* make your changes in the script or the scss file
* run `npx webpack`
* copy scripts from dist folder

## License

[MIT](https://opensource.org/licenses/MIT). © 2016 Viktor Bergehall
1 change: 1 addition & 0 deletions dist/lazyframe.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/lazyframe.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

38 changes: 0 additions & 38 deletions gulpfile.js

This file was deleted.

Loading

0 comments on commit 85ae7d7

Please sign in to comment.