mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-26 02:35:25 +02:00
APPSTATE refactoring:
- Make index.html cacheable by being stateless - Improve compression (base64 doesn't gzip well) - Remove base64 encoding/decoding step - Make AppState injectable so it can be unit tested - Ready to remove the global leakage
This commit is contained in:
@@ -22,7 +22,7 @@ html
|
||||
div(growl)
|
||||
div(ng-view).fill-height
|
||||
|
||||
script(src='data:application/javascript;base64,#{new Buffer("var APPSTATE=" + JSON.stringify(APPSTATE)).toString("base64")}')
|
||||
script(src='/api/v1/appstate.js')
|
||||
script(src='/static/app/build/entry/commons.entry.js')
|
||||
script(src='/static/app/build/entry/app.entry.js')
|
||||
script(src='/static/bower_components/stf-analytics/analytics.js')
|
||||
|
||||
Reference in New Issue
Block a user