data = memcache.get(key="JSAGG")
if data is None:
filenames = ["js/jquery.js",
data = ""
for filename in filenames:
data += minify(filename) + '\n'
memcache.add(key="JSAGG", value=data, time=memCacheExpire)
Obviously change the filenames. Maybe someone clever can write something that includes all .js files automatically. Anyway for me this cut initial (non-cached) page load times by more than 60%.
In response to the comment below, you'll need this in your app.yaml:
- url: /js.*