v1.14.0-djmaze8

This commit is contained in:
djmaze 2020-09-23 14:49:43 +02:00
parent 3757324e32
commit 749fe314aa
3 changed files with 21 additions and 17 deletions

View file

@ -96,23 +96,24 @@ Things might work in Edge 18, Firefox 50-62 and Chrome 54-68 due to one polyfill
|js/* |1.14.0 |native | |js/* |1.14.0 |native |
|----------- |--------: |--------: | |----------- |--------: |--------: |
|admin.js |2.130.942 | 850.483 | |admin.js |2.130.942 | 850.202 |
|app.js |4.184.455 |2.489.620 | |app.js |4.184.455 |2.488.837 |
|boot.js | 671.522 | 5.749 | |boot.js | 671.522 | 5.285 |
|libs.js | 647.614 | 251.448 | |libs.js | 647.614 | 250.948 |
|polyfills.js | 325.834 | 0 | |polyfills.js | 325.834 | 0 |
|TOTAL |7.960.367 |3.597.300 | |TOTAL |7.960.367 |3.595.272 |
|js/min/* |1.14.0 |native |gzip 1.14 |gzip |brotli | |js/min/* |1.14.0 |native |gzip 1.14 |gzip |brotli |
|--------------- |--------: |--------: |--------: |--------: |--------: | |--------------- |--------: |--------: |--------: |--------: |--------: |
|admin.min.js | 252.147 | 116.639 | 73.657 | 33.352 | 28.765 | |admin.min.js | 252.147 | 116.626 | 73.657 | 33.343 | 28.869 |
|app.min.js | 511.202 | 339.395 |140.462 | 89.334 | 72.305 | |app.min.js | 511.202 | 339.176 |140.462 | 89.271 | 72.393 |
|boot.min.js | 66.007 | 3.096 | 22.567 | 1.545 | 1.319 | |boot.min.js | 66.007 | 2.935 | 22.567 | 1.510 | 1.285 |
|libs.min.js | 572.545 | 148.577 |176.720 | 52.312 | 46.561 | |libs.min.js | 572.545 | 148.303 |176.720 | 52.206 | 46.472 |
|polyfills.min.js | 32.452 | 0 | 11.312 | 0 | 0 | |polyfills.min.js | 32.452 | 0 | 11.312 | 0 | 0 |
|TOTAL |1.434.353 | 607.707 |424.718 |176.543 |148.950 | |TOTAL |1.434.353 | 607.040 |424.718 |176.330 |149.019 |
|TOTAL (no admin) |1.182.206 | 490.414 |351.061 |142.987 |120.150 |
826.646 bytes (248.175 gzip) is around 58% smaller and faster. For a user its around 58% smaller and faster than traditional RainLoop.
### CSS changes ### CSS changes

View file

@ -3,7 +3,7 @@
"title": "RainLoop Webmail", "title": "RainLoop Webmail",
"description": "Simple, modern & fast web-based email client", "description": "Simple, modern & fast web-based email client",
"private": true, "private": true,
"version": "1.14.0-djmaze7", "version": "1.14.0-djmaze8",
"homepage": "https://www.rainloop.net", "homepage": "https://www.rainloop.net",
"author": { "author": {
"name": "RainLoop Team", "name": "RainLoop Team",

View file

@ -22,14 +22,14 @@ if ($return_var) {
} }
if ($gzip = trim(`which gzip`)) { if ($gzip = trim(`which gzip`)) {
// passthru("{$gzip} -k --best -r ".escapeshellarg(__DIR__ . '/rainloop/v/0.0.0/static/js/*.js'), $return_var); passthru("{$gzip} -k --best -r ".escapeshellarg(__DIR__ . '/rainloop/v/0.0.0/static/js/*.js'), $return_var);
// passthru("{$gzip} -k --best -r ".escapeshellarg(__DIR__ . '/rainloop/v/0.0.0/static/css/app*.css'), $return_var); passthru("{$gzip} -k --best -r ".escapeshellarg(__DIR__ . '/rainloop/v/0.0.0/static/css/app*.css'), $return_var);
} }
if ($brotli = trim(`which brotli`)) { if ($brotli = trim(`which brotli`)) {
// passthru("{$brotli} -k --best ".escapeshellarg(__DIR__ . '/rainloop/v/0.0.0/static/js/*.js'), $return_var); passthru("{$brotli} -k --best ".escapeshellarg(__DIR__ . '/rainloop/v/0.0.0/static/js/*.js'), $return_var);
// passthru("{$brotli} -k --best ".escapeshellarg(__DIR__ . '/rainloop/v/0.0.0/static/js/min/*.js'), $return_var); passthru("{$brotli} -k --best ".escapeshellarg(__DIR__ . '/rainloop/v/0.0.0/static/js/min/*.js'), $return_var);
// passthru("{$brotli} -k --best ".escapeshellarg(__DIR__ . '/rainloop/v/0.0.0/static/css/app*.css'), $return_var); passthru("{$brotli} -k --best ".escapeshellarg(__DIR__ . '/rainloop/v/0.0.0/static/css/app*.css'), $return_var);
} }
// Temporary rename folder to speed up PharData // Temporary rename folder to speed up PharData
@ -73,6 +73,9 @@ $tar->addFromString('data/VERSION', $package->version);
$zip->addFile('_include.php'); $zip->addFile('_include.php');
$tar->addFile('_include.php'); $tar->addFile('_include.php');
$zip->addFile('.htaccess');
$tar->addFile('.htaccess');
$index = file_get_contents('index.php'); $index = file_get_contents('index.php');
$index = str_replace('0.0.0', $package->version, $index); $index = str_replace('0.0.0', $package->version, $index);
$index = str_replace('source', 'community', $index); $index = str_replace('source', 'community', $index);