1

我在学习gwt的时候在developers.google.com看到了以下句子。

"The "`cache`" files contain your application's logic. If you were to look inside a 
`.nocache.html` file, you would see that it is JavaScript code wrapped in a thin HTML
 wrapper.You might wonder why the `GWT` Compiler doesn't simply emit it as a JavaScript .js 
file. The reason for this is that certain browsers do not correctly handle compression of 
pure-JavaScript files in some circumstances. This would effectively mean that users 
unfortunate enough to be using such a browser would download the `.js` file uncompressed. "

我们是javascript从 .cache.html 文件加载的,那为什么我们不能从 .js 下载呢?我认为现在所有浏览器都支持javascript..

4

1 回答 1

1

引用的声明似乎已经解释得很清楚:“某些浏览器在某些情况下不能正确处理纯 JavaScript 文件的压缩”。这不是关于支持 JavaScript,而是关于支持 JavaScript 文件的压缩。

于 2012-11-26T07:12:15.713 回答