我想知道为什么?在本地存储所有javascript是否需要pagespeed?
我在 pagespeed.conf 中找到了这个
# ModPagespeedDomain
# authorizes rewriting of JS, CSS, and Image files found in this
# domain. By default only resources with the same origin as the
# HTML file are rewritten.
但是,当外部 js 文件刚刚从 DOM 中删除时,情况似乎并非如此。
编辑
好的,所以使用位于 head 部分的默认设置第三方 js 资源。前任:
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.0/jquery.min.js"></script>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.10/jquery-ui.min.js"></script>
<script type="text/javascript" src="http://connect.facebook.net/en_US/all.js"></script>
使用 pagespeed 从源代码中删除。所以我做了一些挖掘并用不同的设置愚弄。我想出的是,似乎以下过滤器导致了这个问题:
combine_css
inline_css
我所做的是我一次启用一个过滤器,直到我得到“错误”。
这一定是个bug?不是吗?