Skip to content

Commit 6ac70bd

Browse files
committed
chore: README.md update
1 parent a33566a commit 6ac70bd

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ $ npm install react-lite-yt-embed
2828
### Introduction
2929
'react-lite-yt-embed' is a react component version of popular package [lite-youtube-embed](https://github.com/paulirish/lite-youtube-embed), which can use in React project including SSR and CSR project. It renders just like the real iframe but way much faster.
3030

31+
### Why is it faster than normal iframe ?
32+
- Preload the youtube thumbnail image when page loaded. [Make image load faster]
33+
- Preconnect youtube domain when mouse hover on the component. [Save 3 round-trip-time (DNS lookup + TCP handshake + SSL negotiation) before user click play button, making iframe load faster]
34+
3135
## Basic Usage
3236

3337
```javascript

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "1.1.6",
2+
"version": "1.1.7",
33
"license": "MIT",
44
"main": "dist/index.js",
55
"typings": "dist/index.d.ts",

0 commit comments

Comments
 (0)