filamentgroup/Ajax-Include-Pattern — pull request #1 by stevenhauser (2012-03-29 15:14:04+00:00)
Title: Some optimizations

- Cached some data outside of the `each` loop
- Moved a few sections into functions
- Did an early return if there is no URL, the threshold is not met, or there is no method
- Did a check to see if the URL is already in the filelist to prevent duplicate data returns from the server
- Prepended jQuery objects with a $ for clarity—this is obviously stylistic and can be reverted if desired