是否有用于组合/压缩 javascript 和 css 的 Magento 扩展?
我以为 Magento 自带了这个功能,但它似乎根本不起作用。我不确定我是否没有正确设置它,但现在我正在使用 cat
并更改 page.xml
布局文件以使用合并了 javascript 和 css 文件。
我可以让 Magento 执行此操作吗?或者是否有扩展程序可以添加此功能?
I thought Magento came with this feature out of the box but it doesn't appear to be working at all. I'm not sure if I haven't set it up properly, but right now I'm resorting to using cat
and altering the page.xml
layout file to use the combined javascript and css files.
Can I make Magento do this instead or is there an extension that adds this feature?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
http://www.magentocommerce.com/magento-connect/catalog /product/view/id/10581
这个扩展运行良好,并将我们网站的性能提高到相当高的水平...
认为这可能会帮助某人...
http://www.magentocommerce.com/magento-connect/catalog/product/view/id/10581
this extension works fine and has improved our site's performances to a considerably higher levels...
Think this might help someone...
在服务器零配置上安装 google 的
mod_pagespeed
玛根托。install
mod_pagespeed
by google on server zero configuration for your magento.转到“系统”>“配置”>“开发人员”,然后更改 Javascript 和 CSS 设置框中的设置。确保您在网站/商店页面的左上角设置了正确的配置范围。
确保更改设置后刷新缓存。
PS Fooman Speedster 扩展也将执行此任务。
Go to System>Configuration>Developer and alter the settings in the Javascript and CSS settings boxes. Ensure that you have correct Configuration Scope set in the top-left of the page for your website/store.
Make sure that you flush the cache after changing the setting.
P.S. The Fooman Speedster extension will also perform this task.
还有 mod_pagespeed 可以对服务器的所有输出执行此操作,但不会损害 Magento它。
There is also mod_pagespeed which does this for all output from your server but doesn't hurt Magento while it does it.
Magento Connect 中有一些扩展,例如 JS/CSS 压缩 minify 或在网络上,例如 Compressor。
There are extensions in Magento Connect like JS/CSS Compression minify or on the web like Compressor.