afterlogic / webmail-lite-8

Open-source webmail script for existing IMAP server
https://afterlogic.org/webmail-lite-8
GNU Affero General Public License v3.0
336 stars 72 forks source link

Extremely Slow #46

Closed paschaldev closed 5 years ago

paschaldev commented 5 years ago
Screenshot 2019-07-26 at 11 19 24

Using webmail lite has been difficult, it takes about 3minutes wait time for the login page to be rendered so users can login.

The screenshot above was when the internet speed was at 17Mbps. The initial JS script that initiates other smaller items alone is about 1MB, this is too large especially here in Africa where internet speed is a challenge. Having to wait 3minutes before login is not ideal. Can dynamic JS loading and code splitting with Webpack be implemented?

Any help or suggestions on how this can be fine-tuned?

afterlogic-support commented 5 years ago

Are you using the latest 8.3.5 release? And do you encounter the same performance issue on Live Demo?

paschaldev commented 5 years ago

Yes, latest release. The live demo loads very fast. This is my installation link, check it out and see: http://ibstmedia.com/mail/

afterlogic-support commented 5 years ago

Thanks.

Just heard from the developers on this, they state there's currently no workaround for that. The primary file is rather complex and contains the core client-side code required for the product to function. As you can see from the console output, module-specific code is loaded separately.

The suggestion we currently have is to enable GZip compression on your web server level. Our test show that, if we limit speed to about 15Mbps, app.min.js file is loaded within 5-6 seconds - with GZip enabled, that is.

paschaldev commented 5 years ago

How do I enable G-ZIP compression?

paschaldev commented 5 years ago

Found it, enabled it. It loads within 50seconds now. Any more optimization tips?

afterlogic-support commented 5 years ago

That's the only idea we could think of at the moment.