Skip to content

Commit 653970d

Browse files
authored
Merge pull request #41 from vb/feat/noembed-support
Feat/noembed support
2 parents 80b7809 + 56c7be3 commit 653970d

9 files changed

Lines changed: 56 additions & 115 deletions

File tree

README.md

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,6 @@ General options and corresponding defaults
8484

8585
```js
8686
lazyframe(elements, {
87-
apikey: undefined,
8887
debounce: 250,
8988
lazyload: true,
9089
autoplay: true,
@@ -96,12 +95,6 @@ lazyframe(elements, {
9695
});
9796
```
9897

99-
### `apikey`
100-
101-
If you want to load a thumbnail and title for a YouTube video you'll have to have an API key with the YouTube data API library enabled. Get it from [here](https://console.developers.google.com/)
102-
103-
_If you don't feel like getting a key, just use your own thumbnail and title in data-thumbnail and data-title attribute_
104-
10598
### `debounce`
10699

107100
Value (in milliseconds) for when the update function should run after the user has scrolled. [More here](https://css-tricks.com/the-difference-between-throttling-and-debouncing/)
@@ -147,11 +140,11 @@ Attribute for theming lazyframe. Currently supported values are `youtube`, `yout
147140

148141
### `data-title`
149142

150-
Attribute for custom title. Leave empty to get value from API.
143+
Attribute for custom title. Leave empty to get value from noembed.com.
151144

152145
### `data-thumbnail`
153146

154-
Attribute for custom thumbnail. Leave empty to get value from API.
147+
Attribute for custom thumbnail. Leave empty to get value from noembed.com.
155148

156149
### `data-src`
157150

dist/lazyframe.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)