Welcome to WebmasterWorld Guest from

Forum Moderators: open

Message Too Old, No Replies

grep for calls to Dojo and Mootools

5:42 pm on Dec 21, 2012 (gmt 0)


WebmasterWorld Administrator ergophobe is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Apr 25, 2002
votes: 222

I just started work on a pretty big site where the original developer is loading three libraries - jQuery, Dojo and Mootools - on every page.

I know that jQuery is getting used, but I have disabled Dojo and Mootools and can't see any problems. I can't find any calls to them either, but there are thousands of files (though not thousands of JS files, but it's possible that JS is inline in some files/templates) and I have looked around a bit and don't see any calls to those libraries.

Are there some fairly reliable markers for Dojo and Mootools I could grep for?

Like for jQuery I can grep for things like "(jQuery|\$\()" and hit most invocations with just a few siple strings like that.

Ideally, of course, the Dojo/Mootools searches would be distinct from jQuery (i.e. hit Mootools and Dojo,but not jQuery).

Since I don't know those librarires at all, I'm hoping someone can give some good ideas.

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members