【发布时间】:2017-05-09 20:31:46
【问题描述】:
我是 Magento 的新手,但现在在 webdev 工作了几年。
我的目标是在速度方面优化现有的 Magento 安装。
查看此安装中使用的所有 JS 和 CSS 文件,我的首要目标是合并这些文件或更好地减少使用的模块数量。我知道配置菜单中的“组合文件”功能,但这确实会导致 jQuery 和原型之间的冲突,这就是为什么我试图首先了解使用了哪些类型的框架/模块等。
这是本次安装主页所需的所有JS文件的列表:
jquery-1.12.3.min.js
prototype.js
ccard.js
validation.js
builder.js
effects.js
dragdrop.js
controls.js
slider.js
js.js
form.js
script.js
menu.js
translate.js
cookies.js
func.js
jquery.easing.1.3.min.js
efects.js
jquery-1.11.0.min.js
jquery-migrate-1.2.1.min.js
jquery.noconflict.js
swiper.min.js
jquery.easing.js
jquery.scrollTo.min.js
jquery.global.js
remodal.min.js
jquery.themepunch.tools.min.js
jquery.themepunch.revolution.min.js
easyzoom.js
ios-orientationchange-fix.js
jquery.swipebox.min.js
jquery.themepunch.plugins.min.js
jquery.themepunch.revolution.js
jquery.slider.js
jquery.selectbox.js
jquery.bxslider.min.js
jquery.tweet.js
cookieconsent.min.js
gtm.js?id=GTM-5W7V6F
analytics.js
ec.js
清理此列表以保持功能同时减少请求和负载的最佳方法是什么?
【问题讨论】:
-
针对 magento 1.x 或 magento 2.x 提出这个问题
-
这是 Magento 1.9.2
标签: javascript jquery magento optimization