Issue #2266961 by Devin Carlson: Improved JavaScript loading performance by caching it locally and adding it to the footer if the local cache is disabled.