Why ProgressEvent.lengthcomputable is false of onProgress callback of a model loader in chrome?

loaders

#1

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!!


#2

How are you hosting your app? This could be the reason:


#3

on godaddy using core PHP on server side


#4

Then you should ensure that your server actually sets the Content-Length header in the response (like mentioned at stackoverflow).