Commit c75b20c8d2ffe02365942a8ba537328b1016da39
1 parent
f2adef6b
Exists in
master
and in
1 other branch
Enables Rack::Deflate for notify.js
This saves a bit of time when the user tries to load the page that has javascript notification. It will gzip the javascript, from my calculations the gain is up to 27Kb.
Showing
1 changed file
with
1 additions
and
0 deletions
Show diff stats
config.ru
| 1 | # This file is used by Rack-based servers to start the application. | 1 | # This file is used by Rack-based servers to start the application. |
| 2 | 2 | ||
| 3 | require ::File.expand_path('../config/environment', __FILE__) | 3 | require ::File.expand_path('../config/environment', __FILE__) |
| 4 | +use Rack::Deflater | ||
| 4 | run Errbit::Application | 5 | run Errbit::Application |