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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

CDN-hosted JavaScript Represents an Additional Point of Failure

10 点作者 lerouxb大约 11 年前

4 条评论

cyberpanther大约 11 年前
Also hosting static files is probably the easiest thing to do with your web app. So why introduce another point of failure for something really easy? You may save a few milliseconds but definitely not worth it in my opinion. I'd rather have better control and if you really want to speed things up then combine and minify all your static assets.
评论 #7399332 未加载
评论 #7399324 未加载
clintonb大约 11 年前
I agree that a CDN introduces a potential point of failure. Another reason I host locally is that I compress and minify my CSS and JS into single files (e.g. application.js and application.css in Rails).
x13大约 11 年前
Everything but the most well thought-out app is itself a SPOF.<p>1. design and develop solutions appropriate for your audience; consider their location, access to the network, and possible speed or lack thereof.<p>2. I love using professionally managed SLA-backed CDN&#x27;s - like Akamai. A browser can only load so many items from the same host at one time, so I&#x27;ve found using a CDN helps, given my usage scenario. (see above)
评论 #7402484 未加载
lerouxb大约 11 年前
&gt; I also feel that if more people understood that the internet is basically held together by duct tape, they would have a lot more reverence to the miracle that it works even remotely as reliably as it does.<p>The fact that the internet (and especially browsers) works at all is the main wonder of our age.