javascript - 为什么 Bing 会混淆他们的 JavaScript?

标签 javascript html css obfuscation bing

我像往常一样在网上冲浪,我想看看 Bing的源代码,因为我很好奇,想知道他们使用什么来使他们的图像淡入。我很惊讶只能通过以下行来限定:

神圣的文字墙!

这让我想知道像这样混淆您的 (X)HTML、CSS 和 JavaScript 是否有任何优势?也许是为了减小文件的大小?


编辑:环顾四周后,我意识到这是一种很常见的做法。从来没有从缩小的 Angular 来看过它!

最佳答案

它们没有混淆。他们是minifying为了减少他们每天看到的数百万请求所使用的带宽。

The goal of JavaScript and CSS minification is always to preserve the operational qualities of the code while reducing its overall byte footprint (both in raw terms and after gzipping, as most JavaScript and CSS served from production web servers is gzipped as part of the HTTP protocol).

您可能也有兴趣阅读 Yahoo!标题为 "Minification v. Obfuscation" 的用户界面博文.

关于javascript - 为什么 Bing 会混淆他们的 JavaScript?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1070514/

相关文章:

php - 允许用户将 html/php/css 页面保存为 pdf 格式?

javascript - 滚动时的 jQuery 动画

javascript - WooCommerce 自定义简码产品类别下拉列表

javascript - Angularjs 和自动生成的 SELECT 标签

javascript - 使用 let 初始化的函数在使用 this 访问时不会被替换

html - Internet Explorer 在 JQuery .hide() 上崩溃

html - 选择器 :not(:last-child) not working with div child img tag?

javascript - 未定义不是函数: how to get LABjs to work with jQuery scripts

html - webkit-transform 添加到两个不同的复选框时不起作用

php - echo html 和 php 给出语法错误