Dojo在CDN上自己安装 [英] Dojo on a CDN vs own install

查看:120
本文介绍了Dojo在CDN上自己安装的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用了很多Dojo,但到目前为止,我只使用了一个CDN,例如AOL / Google。

I use quite a lot of Dojo, but to date I've only used it by including from a CDN such as AOL/Google.

托管Dojo的副本,而不是通过CDN使用它?我没有太多的需要改变代码库,但是我想象还有其他优点/缺点?

Are there advantages to hosting a copy of Dojo rather than using it via a CDN? I don't have much need to alter the code base, but I imagine there are other advantages/disadvantages?

推荐答案

你自己的Dojo env。例如,您可以自定义构建dojo。所以你只需要加载一个* .js文件。这可以节省xhr请求使用的流量。

by hosting your own Dojo env. you are for example able to make a custom build of dojo. So you only need to load one *.js file. That saves traffic used by the xhr requests.

-jstr

这篇关于Dojo在CDN上自己安装的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆