Question

I inherited a web site project that includes mootools.js (about 40k) in most of the scripts. However, I have not seen, intuitively, where it is being used and given the nature of this porject, ahem, I'm thinking it might not be being used at all!

I'm "under the gun" to ship this tonight (yup, it's a pre-Thanksgiving release). I have not used mootools.js so I'm not sure what to grep for or if there's a sure tell way to determine this. I don't want to have to JSLint it (or do I LOL). Any suggestions would be appreciated. Thanks.

Was it helpful?

Solution

Mootools grafts itself onto some of the native js stuff, so it might be hard to do just by code inspection unless you are very familiar with what MooTools gives you.

Remove it, run your automated tests.

Cause you have those, right?...

OTHER TIPS

Remove it and see if anyone complains.

(You could try it on a test machine first, if you're not feeling brave.)

You can check your source code on some MooTools methods, for example, addEvent(). If it is used so here is the Mootols :)

Just check from the home page of http://mootools.net/

I also was interested on one site why they use jquery and mootools. So, I found addEvent() method. It is Mootols method.

You must have a dev version of the site. Just pull it out and go over pages see if stuff breaks. Mostly you will get unknown function type stuff, if there is any dependencies. Firebug is your friend.

1, Open firebug 2, Click the DOM tab 3, Check if the Mootools object exists (It will say the current version of mootools next to it). Hope this helps :)

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top