Minimize mootools-more.js file

Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Sun Apr 14, 2013 11:24 pm
Reply with quote
Report this post
Hi

I'm trying to improve the loading speed of the web. Mootools-more.js is 233 kilobytes (compressed version).
Here http://mootools.net/more/ can build mootools-more.js with the files that i need but i don't know what files are necesary for everything to work properly. Is there any way to know which files are needed to add and save space?

Regards.
User avatar
Senior Boarder

GK User
Sun Apr 14, 2013 11:46 pm
Reply with quote
Report this post
Perhaps following post by "Pawel Frankowski" will help you.

http://www.gavick.com/magazine/quick-ti ... tools.html
User avatar
Platinum Boarder

GK User
Sun Apr 14, 2013 11:49 pm
Reply with quote
Report this post
Hi,
this file : media\system\js\mootools-more.js - is core file,
I suggest you do not modify these files, a better & safe solution is to turn off mootools in the pages that do not use the library.
User avatar
Platinum Boarder

GK User
Mon Apr 15, 2013 12:33 am
Reply with quote
Report this post
Thank for your answers.

I appreciate that information but there is a problem. The option for customers to view their cart as popup need mootools-more.js to works fine, i use this option in all pages so i can´t turn off.

I've researching and mootools-more is mainly used for popups and some modules like mod_news_pro. Because this i thought to reduce the file using only the necessary part to work properly.

The link that I put in the previous message you can view several classes which i'm sure are not necessary. Some examples:

- Locale.ca-CA.Form.Validator - Form Validator messages for Catalan.
- Locale.de-CH.Date - Date messages for German (Switzerland).
- Locale.zh-CH.Form.Validator - Form Validator messages for Chinese (simplified and traditional).

Obviously some classes depend on the language used but I think we can reduce it quite.

I appreciate your time.

Regards.
User avatar
Senior Boarder


cron