From 2a1ccc5d24fbb076dd21ea3342301544830a52ea Mon Sep 17 00:00:00 2001 From: djmaze Date: Mon, 23 Nov 2020 17:13:38 +0100 Subject: [PATCH] Resolve https://github.com/the-djmaze/snappymail/issues/37 --- README.md | 18 +++++++++--------- release.php | 5 +++++ 2 files changed, 14 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index ad90a699e..0b28854b8 100644 --- a/README.md +++ b/README.md @@ -110,23 +110,23 @@ RainLoop 1.14 vs SnappyMail |js/* |RainLoop |Snappy | |--------------- |--------: |--------: | -|admin.js |2.130.942 | 652.023 | -|app.js |4.184.455 |2.310.715 | +|admin.js |2.130.942 | 651.579 | +|app.js |4.184.455 |2.311.115 | |boot.js | 671.522 | 5.285 | -|libs.js | 647.614 | 235.271 | +|libs.js | 647.614 | 235.382 | |polyfills.js | 325.834 | 0 | |serviceworker.js | 0 | 285 | -|TOTAL |7.960.367 |3.203.579 | +|TOTAL |7.960.367 |3.203.646 | |js/min/* |RainLoop |Snappy |Rain gzip |gzip |brotli | |--------------- |--------: |--------: |--------: |--------: |--------: | -|admin.min.js | 252.147 | 90.470 | 73.657 | 23.707 | 20.738 | -|app.min.js | 511.202 | 310.166 |140.462 | 83.178 | 67.672 | +|admin.min.js | 252.147 | 90.401 | 73.657 | 23.683 | 20.709 | +|app.min.js | 511.202 | 310.134 |140.462 | 83.154 | 67.628 | |boot.min.js | 66.007 | 2.918 | 22.567 | 1.500 | 1.275 | -|libs.min.js | 572.545 | 130.767 |176.720 | 47.288 | 42.043 | +|libs.min.js | 572.545 | 130.838 |176.720 | 47.317 | 42.136 | |polyfills.min.js | 32.452 | 0 | 11.312 | 0 | 0 | -|TOTAL |1.434.353 | 534.321 |424.718 |155.673 |131.728 | -|TOTAL (no admin) |1.182.206 | 443.851 |351.061 |131.966 |110.990 | +|TOTAL |1.434.353 | 534.291 |424.718 |155.654 |131.748 | +|TOTAL (no admin) |1.182.206 | 443.890 |351.061 |131.971 |111.039 | For a user its around 62% smaller and faster than traditional RainLoop. diff --git a/release.php b/release.php index b2709974d..0d29f0026 100755 --- a/release.php +++ b/release.php @@ -99,6 +99,11 @@ $tar->addFromString('index.php', $index); $zip->addFile('README.md'); $tar->addFile('README.md'); +$data = file_get_contents('dev/serviceworker.js'); +//$data = file_get_contents('snappymail/v/0.0.0/static/js/min/serviceworker.min.js'); +$zip->addFromString('serviceworker.js', $data); +$tar->addFromString('serviceworker.js', $data); + $zip->close(); $tar->compress(Phar::GZ);