Xpages 使用运行时优化的Javascript

Xpages 使用运行时优化的Javascript,xpages,Xpages,我在上有同样的问题,但在我的例子中,它也发生在IE9中。当我手动刷新页面时,一切都恢复正常。看起来JS聚合器试图对javascript文件进行处理 有人找到了解决办法吗 这是我加载客户端javascript文件的方式。“xast.locationJS”变量是服务器上可以找到javascript文件的位置 <xp:this.resources> <xp:script clientSide="true"> <xp:this.src>&

我在上有同样的问题,但在我的例子中,它也发生在IE9中。当我手动刷新页面时,一切都恢复正常。看起来JS聚合器试图对javascript文件进行处理

有人找到了解决办法吗

这是我加载客户端javascript文件的方式。“xast.locationJS”变量是服务器上可以找到javascript文件的位置

   <xp:this.resources>
    <xp:script clientSide="true">
        <xp:this.src><![CDATA[${javascript:return  applicationScope.get("xast.serverUrl") +"/" +applicationScope.get("xast.locationJS") + "/jquery-1.5.1.min.js"}]]></xp:this.src>
    </xp:script>
    <xp:script clientSide="true">
        <xp:this.src><![CDATA[${javascript:return applicationScope.get("xast.serverUrl") + "/" + applicationScope.get("xast.locationJS") + "/jquery.hoverIntent.minified.js"}]]></xp:this.src>
    </xp:script>
    <xp:script clientSide="true">
        <xp:this.src><![CDATA[${javascript:return  applicationScope.get("xast.serverUrl") + "/" + applicationScope.get("xast.locationJS") + "/jquery.tools.min.js"}]]></xp:this.src>
    </xp:script>
    <xp:script clientSide="true">
        <xp:this.src><![CDATA[${javascript:return  applicationScope.get("xast.serverUrl") + "/" + applicationScope.get("xast.locationJS") + "/jquery-ui-1.8.14.custom.min.js"}]]></xp:this.src>
    </xp:script>
    <xp:script clientSide="true">
        <xp:this.src><![CDATA[#{javascript:return  applicationScope.get("xast.serverUrl") + "/" + applicationScope.get("xast.locationJS") + "/C2C_dojo.tools.js"}]]></xp:this.src>
    </xp:script>
    <xp:script clientSide="true">
        <xp:this.src><![CDATA[#{javascript:return  applicationScope.get("xast.serverUrl") + "/" + applicationScope.get("xast.locationJS") + "/CommonXmlFunctions.js"}]]></xp:this.src>      
    </xp:script>
    <xp:script clientSide="true">
        <xp:this.src><![CDATA[#{javascript:return  applicationScope.get("xast.serverUrl") + "/" + applicationScope.get("xast.locationJS") + "/C2C_WebCaseSuggest.js"}]]></xp:this.src>
    </xp:script>
    <xp:script clientSide="true">
        <xp:this.src><![CDATA[${javascript:return  applicationScope.get("xast.serverUrl") + "/" + applicationScope.get("xast.locationJS") + "/uncompressed/xpUtils.js"}]]></xp:this.src>
    </xp:script>
</xp:this.resources>


问题似乎出在“页面加载时计算”属性上。我认为在页面加载时计算的库会被JS聚合器自动拾取,或者类似的东西。

开玩笑:使用Chrome框架Chrome框架…yuk!这种情况发生在服务器端,恐怕与任何浏览器都没有关系,在Chrome和Firefox中也会发生。简单问一下:为什么有些CSJS库设置为“页面加载时计算”,有些设置为“动态计算”呢?我后来添加了一些javascript,让它动态计算。但是当我考虑这个问题时,页面加载库是在页面第一次加载时抛出错误的库。。。嗯