openMF / community-app

This was the former default web application built on top of the Apache Fineract platform. It's now deprecated and replaced by the the Mifos X Web App (https://github.com/openMF/web-app maintained by the Mifos Initiative as a reference solution for financial inclusion. It is a Single-Page App (SPA) written in web standard technologies.
http://openmf.github.io/community-app/
Mozilla Public License 2.0
313 stars 1.02k forks source link

Login screen load issue on a slow network availability #3415

Open bharathcgowda opened 3 years ago

bharathcgowda commented 3 years ago

Login screen load issue on a slow network availability

Description

when there is low network bandwidth, the system will not load the login screen even after several hard refreshes or private mode browsing.

This issue is with the latest release, 18.03 was loading properly find the below screenshot of the network issue and log file for more information

Steps to Reproduce

try to login with low network connectivity the login screen will not load.

Expected Behaviour

login screen should load with less internet connectivity too

Actual Behaviour

try to login with low network connectivity the login screen will not load.

Settings

Screenshots

IMG-20210809-WA0003 Mifos logs 20200112.txt

image

francisguchie commented 3 years ago

@bharathcgowda this is a real problem ever since i started using the latest builds it was not the case with release 17.07.01 and 18.03.01

francisguchie commented 3 years ago

@bharathcgowda
I found the problem i think - after installing SSL certificate (Domain Validation) on my server, the page loads in matters of seconds

@ibrahim

bharathcgowda commented 3 years ago

@francisguchie That is not the root cause I feel, I have noticed this issue among production servers with proper SSL certificates and high-end instances. We would need some core developers to help us on investigating this issue

francisguchie commented 3 years ago

@bharathcgowda It will be nice for u to use the latest build on these servers. I believe that this was solved (either unknowingly or due to updates) - I used the latest code of fineract and the UI and as soon as I got the SSL installed (from let's encrypt) it worked just fine

v3ss0n commented 2 years ago

@bharathcgowda It will be nice for u to use the latest build on these servers. I believe that this was solved (either unknowingly or due to updates) - I used the latest code of fineract and the UI and as soon as I got the SSL installed (from let's encrypt) it worked just fine

wrong information . It is due to reqiuirjs not loading module within 7 seconds. put waitSeconds:0 in app/scripts/loader.js

v3ss0n commented 2 years ago

@bharathcgowda I found the problem i think - after installing SSL certificate (Domain Validation) on my server, the page loads in matters of seconds

@ibrahim

it is beause of caching from browser. When the js and assets are cached , they load fast. When they aren't , timeout happens. Regardless or HTTP or SSL , if the module cannot load without 7second it will cause timeout error.

Solution is to out waitSeconds:0 in requirejs config.