friendica/friendica — pull request #413 by fermionic (2012-07-28 16:17:56+00:00)
Title: Modify Javascript to improve page loading times for Frost

1. Add template category 'end' that places content right before final body end tag
2. Move most Javascript from tpl files into one cacheable file, theme.js
3. Load scripts at end of the HTML document instead of in the header
4. Minify several Javascript files

Note that the second and third things were only done for Frost and Frost Mobile. Doing it for every theme means going through every .tpl for every theme and rearranging the Javascript, which is tedious.