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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Smashing Magazine just got 10x faster

38 点作者 soulwatcher大约 8 年前

5 条评论

caseydurfee大约 8 年前
&quot;800 ms time to first load to 80 ms&quot;<p>It&#x27;s a mistake to equivocate TTFB with being 10x faster for the user. It&#x27;s clickbait. The vast majority of that speedup is not from using static files, but from putting the data on a global CDN (Amazon&#x27;s Cloudfront in this case - Netlify didn&#x27;t build their own.)<p>Put it this way: if you have caching, and a page on your site gets hit 1000 times, 999 times it&#x27;s going to be as fast for the user no matter what the backend technology used is because it&#x27;s not going to the backend. So if the first hit takes 800 msec against Wordpress, then the other 999 requests take 80 msec, then using the static file instead of Wordpress only makes it 1% faster, not 10x faster.<p>For the record, the new Smashing Magazine design is visually complete in about 4.5 seconds: <a href="https:&#x2F;&#x2F;www.webpagetest.org&#x2F;result&#x2F;170318_MY_PJ5&#x2F;1&#x2F;details&#x2F;#waterfall_view_step1" rel="nofollow">https:&#x2F;&#x2F;www.webpagetest.org&#x2F;result&#x2F;170318_MY_PJ5&#x2F;1&#x2F;details&#x2F;#...</a><p>The old one is visually complete in about 5.8 seconds: <a href="https:&#x2F;&#x2F;www.webpagetest.org&#x2F;result&#x2F;170318_T8_Q2D&#x2F;1&#x2F;details&#x2F;#waterfall_view_step1" rel="nofollow">https:&#x2F;&#x2F;www.webpagetest.org&#x2F;result&#x2F;170318_T8_Q2D&#x2F;1&#x2F;details&#x2F;#...</a><p>So, in both cases, time to first byte is a small fraction of how much time it takes for the page to look done to the user, and by no reasonable criterion should it be considered 10x faster now.<p>By putting their stuff on a decent CDN instead of whatever the heck &quot;auslieferung.commindo-media-ressourcen.de&quot; is, they made their page 25% faster. That&#x27;s great! But it&#x27;s bizarre to see something that is pretty much how Movable Type worked in 2002 as a breakthrough in web performance or technology.<p>The secret sauce here is using a global CDN, not being buzzword compliant. Setting up Varnish is not particularly hard. Setting up Cloudfront or another CDN is not particularly hard. You could do that and still use Wordpress, if that&#x27;s what you like.
评论 #13903015 未加载
评论 #13902333 未加载
matt4077大约 8 年前
To repeat a comment I made too late to be seen in the CMS announcement thread yesterday:<p>I wish people would actually use open protocols instead of private APIs, at least in cases where both seem to be available.<p>As far as I can see, the only feature this needs that only github provides is pull requests – omitting those would still leave you with a useful CMS, and the information could also be communicated in, for example, branch names. That way, you could conceivably use any client you want to work on the repo. So instead of implementing Gitlab next, why not make it work with git?<p>This situation reminds me of email clients and libraries, many of whom now use private APIs of a bunch of providers instead of SMTL and IMAP.
评论 #13901730 未加载
评论 #13901711 未加载
ezequiel-garzon大约 8 年前
A few days ago Smashing Magazine published this post on their transition: <a href="https:&#x2F;&#x2F;next.smashingmagazine.com&#x2F;2017&#x2F;03&#x2F;a-little-surprise-is-waiting-for-you-here--meet-the-next-smashing-magazine&#x2F;" rel="nofollow">https:&#x2F;&#x2F;next.smashingmagazine.com&#x2F;2017&#x2F;03&#x2F;a-little-surprise-...</a><p>Edit: The article points out that this is not just about switching to a CDN, but also about streamlining their publishing process:<p><i>In the past, we were using WordPress as a CMS, our job board was running on Ruby, and at one point we switched to Shopify from Magento for our online shop. Not only was maintenance of four separate platforms incredibly complicated, but designing a consistent, smashing experience the way we envisioned it proved to be nearly impossible due to technical restrictions or requirements imposed by these platforms.</i>
imaginenore大约 8 年前
Why is it newsworthy? Smashing Magazine is a static website. Putting it on a CDN is the most obvious, most efficient, and the cheapest optimization.<p>The whole thing reads like a Netlify ad.
评论 #13901827 未加载
overcast大约 8 年前
Show HN