While a model is loading the ProgressEvent.lengthcomptable is false and total length is not computable which prevents the statement inside the if condition from getting executed.
Below is the screenshot of debugger section of chrome browser.
This happens only in Chrome Web Browser.
Any help will be greatly appreciated!!