TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

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

2 点作者 ThatGuySam大约 3 年前

1 comment

ThatGuySam大约 3 年前
In the past I&#x27;ve had a lot of issues with YouTube and Vimeo embeds weighing down Lighthouse performance scores. After dealing with this time I wasn&#x27;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&#x27;s a bit tricky to write I built a generator to build the embed for you from just your video URL.<p>You can read more here: <a href="https:&#x2F;&#x2F;vumbnail.com&#x2F;examples&#x2F;srcdoc-iframe-for-lighthouse" rel="nofollow">https:&#x2F;&#x2F;vumbnail.com&#x2F;examples&#x2F;srcdoc-iframe-for-lighthouse</a><p>Feedback and ideas welcome!