Settings

Theme

Show HN: Embed Builder – PageSpeed optimized YouTube videos with out JavaScript

vumbnail.com

2 points by ThatGuySam 4 years ago · 1 comment

Reader

ThatGuySamOP 4 years ago

In the past I've had a lot of issues with YouTube and Vimeo embeds weighing down Lighthouse performance scores. After dealing with this time I wasn't quite happy with the solutions like YouTube Lite, LazyLoading, and Preconnect so I came up with a way to load the video on click without extra JavaScript, but since it's a bit tricky to write I built a generator to build the embed for you from just your video URL.

You can read more here: https://vumbnail.com/examples/srcdoc-iframe-for-lighthouse

Feedback and ideas welcome!

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection