MooTools Tips

by Tom

Over at net.tutsplus.com David Walsh has a long article comprised of fifteen highly-detailed tips for optimizing your MooTools JavaScript framework code. There are just a few of the tips that Walsh gives us an in-depth explanation of:

  • Use jQuery and MooTools together
  • Save elements and element collections
  • Use element methods on element collections
  • use MooTools alias
  • create custom pseudo selectors
  • implemented methods on existing objects
  •  Extend existing classes
  •  Create custom events
  •  jQuery style events
  • Add events during element creation
  • implementing events inside of classes
  • using event delegation
  • Use Class.toElement
And several more–if you use MooTools at all you should definitely check out this lengthy article.
If you found this helpful or interesting, please share it!

Comments on this entry are closed.

Previous post:

Next post: