Microsoft CDN - jQuery UI 主题的 .css 和图像怎么样?

发布于 2024-09-24 03:44:54 字数 144 浏览 8 评论 0原文

我知道在谈论 .js 时,使用 Microsoft CDN 可以提高网站性能 但是图像呢? jQuery UI 主题的样式也托管在 CDN 中,主题的所有图像也托管在 CDN 中。

使用主题样式以及图像,可以像 .js 一样提高性能吗?

谢谢

I know that the usage of Microsoft CDN improves the website performance when talks about .js
But what about the images? The styles of jQuery UI themes are hosted too in CDN, and all the images of the themes also.

Using the styles of themes, and consequently images also, improves the performance like.js does?

Thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

蓝礼 2024-10-01 03:44:54

您将通过以下方式从 JavaScript、图像和 CSS 中受益...

  • CDN 在地理位置上将更接近用户,因此请求的跳转更少

  • CDN 将在客户端支持的地方使用压缩

  • CDN 将被许多网站使用,这可能意味着 JavaScript ,CSS和图像已经在浏览器缓存中,这意味着甚至不需要请求

  • CDN 内容不会占用您的任何托管带宽

带宽CDN 是

  • 您无法直接控制 CDN 上的内容。如果发布了新版本的 jQuery,您只能在 CDN 上使用它。

  • 您无法保证 CDN 将始终存在,尽管 Microsoft 和 Google 更有可能比不太知名的公司更长时间地支持 CDN。

  • 资源加载时,浏览器状态栏中可能会显示CDN地址,这可能是也可能不是问题。

You will benefit for JavaScript, Images and CSS is the following ways...

  • The CDN will be geographically closer to the user, so less jumps for the request

  • The CDN will use compression where the client supports it

  • The CDN will be utilised by many websites, which may mean that the JavaScript, CSS and Images are already in the browser-cache, which means it won't even need to be requested

  • CDN content won't suck up any of your hosting bandwidth

The downsides of a CDN are

  • You do not have direct control over the content on the CDN. If a new version of jQuery is released, you can only use it once it is on the CDN.

  • You cannot guarantee the CDN will always exist, although it is more likely that Microsoft and Google will support the CDN for longer than a less well known company.

  • The CDN address may be displayed in the browser status bar when the resource is being loaded, which may or may not be a concern.

栖竹 2024-10-01 03:44:54

我不同意微软和谷歌是安全的选择。它们仍然相对较新。谷歌是免费的,但他们的appspot域名引擎由于某种原因仍然被很多企业屏蔽。作为客户你不希望这样。

Azure 速度极快,他们的服务给我留下了深刻的印象。但 CDN 领域真正的参与者是 acamai、edgecast 等公司。这实际上取决于你未来想要做什么。

但对于您当前的需求,CDN 绝对应该能够为您提供您想要的东西。

I don't agree on the Microsoft and Google are the safe bets. They're still relatively new. Google is free and their appspot domain engine is still blocked by a lot of enterprises for some reason. You don't want this as a customer.

Azure is blazingly fast and I'm vastly impressed with their service. But the real players in the CDN space are the guys like acamai, edgecast, etc. Really depends on that you want to do in the future.

But for your current requirements, absolutely, CDNs should be able to provide you what you want.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文