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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

SPA – Likely the biggest website performance booster

5 点作者 volument超过 5 年前

3 条评论

Dunedan超过 5 年前
&gt; The 30K of JavaScript is completely optional. Turn off JavaScript and you see the content-only version, turn it back and you&#x27;ll get the full experience with all the dynamic components. By implementing the page in this way the added SPA functionality won&#x27;t break the page if the client does not support JavaScript.<p>While I explicitly applaud that, the layout of the page is slightly different depending of JavaScript is enabled or not. So why do they use JavaScript for the layout there?
al2o3cr超过 5 年前
That page errors out with &quot;TypeError: undefined is not an object (evaluating &#x27;i.unobserve&#x27;)&quot; and shows zero content when loading in Safari 11, making it INCREDIBLY high performance!
评论 #21928298 未加载
volument超过 5 年前
Happy new year everybody! We built this feature for quite some time. The backend consists of a static website generator, Nginx and a node server cluster. Happy to answer any questions.