Attempts to optimize your jQuery code on the fly.
Include your jQuery scripts in your page in the usual way, but instead of using type="text/javascript, use type="text/javascript+jquery:
<script src="foo.js" type="text/javascript+jquery"></script> <script type="text/javascript+jquery"> $.foo(); </script>
then, include the jquery.optimization.js script in your page as an ordinary Javascript resource, being careful to load it after all your jQuery scripts.:
<script src="jquery.optimizer.js" type="text/javascript"></script>
- Optimized use of selectors. Sources:
- Optimized chaining of function calls. (TBD)
- Optimized caching of selector results. (TBD)
Released under the Apache License, Version 2.0