Search the Community
Showing results for tags 'customfiles'.
-
1)about cdn Unigui is a WEB development framework excellent. UNIGUI development process is in the local area network loading speed, but the Internet load very slowly. I think the main reason is that ext-all.js is 1.4MB + ext-all-rtl.js 1.4mb, I see a lot of CDN resources on the internet. For example Google CDN and Microsoft CDN. I think can be UNIGUI JS resources in a CDN, or unigui official website. In the TUniServerModule to add a Boolean attribute the difference from the local loading or loaded from CDN JS. This can reduce UNIGUI server network bandwidth, and also can make full use of the browser cache mechanism to improve access speed. This is a free CDN contains all versions of EXTJS http://open.bootcss.com/extjs/ The local 127.0.0.1 publishing UNIGUI services, local access: 127.0.0.1:8077 Load the EXTjs language JS CDN 47 MS Local 159 milliseconds When loading a CDN is not successful, the local resource loading <!-- Adds google cdn reference --> <script src="http://ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.min.js"></script> <!-- Cdn fail refers to local library --> <script type="text/javascript"> if (typeof jQuery == 'undefined') { document.write(unescape("%3Cscript src='js/jquery-2.0.0.min.js' type='text/javascript'%3E%3C/script%3E")); } </script> CDN Web accelerator - FAQ http://www.88ztc.com/a/507.html Summarize the methods to reference the CDN content http://www.cnblogs.com/rush/archive/2013/05/31/3111139.html 2)about customfiles About customfiles I think we should first load Unigui是优秀的WEB开发框架。 UNIGUI开发的程序在局域网加载速度还算可以,但是互联网加载很慢。 我认为主要是原因是ext-all.js 1.4mb + ext-all-rtl.js 1.4mb, 我看到网上有不少CDN资源。例如 谷歌 CDN 和 微软CDN。 我在想 能不能 将UNIGUI的JS资源也放到某个CDN上面,或者是unigui官方网站。 在TUniServerModule增加一个Boolean属性区别从本地加载JS还是从CDN上加载。 这样可以减轻UNIGUI服务器的网络带宽,并且也可以充分利用浏览器的缓存机制提高访问速度。 CDN网站加速-常见问题解答 http://www.88ztc.com/a/507.html 引用CDN内容的方法总结 http://www.cnblogs.com/rush/archive/2013/05/31/3111139.html 本地127.0.0.1发布UNIGUI服务,本地访问:127.0.0.1:8077 加载EXTjs语言文字JS CDN 47毫秒 本地 159毫秒 例如: 谷歌: <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script> 微软: <script type="text/javascript"src="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.9.1.min.js"></script> 新浪: <script type="text/javascript" src="http://lib.sinaapp.com/js/jquery/1.9.0/jquery.min.js" ></script>