添加js或者css用得多了,移除还真的是没用过,我承认我out了。
<reference name="head">
<action method="removeItem"><type>js</type><name>prototype/prototype.js</name></action>
</reference>放在特定的page layout里面,首页的话放在cms custom layout里面,That's all!
本文介绍了如何在特定页面布局中移除不必要的JS/CSS文件,以优化网站性能。通过实例展示,您将学会如何在CMS定制布局中操作。
添加js或者css用得多了,移除还真的是没用过,我承认我out了。
<reference name="head">
<action method="removeItem"><type>js</type><name>prototype/prototype.js</name></action>
</reference>
被折叠的 条评论
为什么被折叠?