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

**URL:** <https://discourse.threejs.org/t/why-progressevent-lengthcomputable-is-false-of-onprogress-callback-of-a-model-loader-in-chrome/3409>\
**Category:** Questions\
**Tags:** loaders\
**Created:** [July 11, 2018, 6:55am UTC](https://discourse.threejs.org/t/why-progressevent-lengthcomputable-is-false-of-onprogress-callback-of-a-model-loader-in-chrome/3409 "2018-07-11T06:55:41Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dhawal\_Gaur](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/dhawal_gaur/32/5495_2.png) [@Dhawal\_Gaur](https://discourse.threejs.org/u/Dhawal_Gaur)\
**Post date:** [July 11, 2018, 6:55am UTC](https://discourse.threejs.org/t/why-progressevent-lengthcomputable-is-false-of-onprogress-callback-of-a-model-loader-in-chrome/3409/1 "2018-07-11T06:55:41Z")

</div>

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.

![Capture](https://cdck-file-uploads-canada1.s3.dualstack.ca-central-1.amazonaws.com/flex035/uploads/threejs/original/2X/e/e3f8265e76e1b5dd0e3e97b31932fddb80fdffb4.PNG)

This happens only in Chrome Web Browser.  
Any help will be greatly appreciated!!

---

<div class="post-metadata">

**Author:** ![Mugen87](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/mugen87/32/5645_2.png) [@Mugen87](https://discourse.threejs.org/u/Mugen87)\
**Post date:** [July 11, 2018, 8:24am UTC](https://discourse.threejs.org/t/why-progressevent-lengthcomputable-is-false-of-onprogress-callback-of-a-model-loader-in-chrome/3409/2 "2018-07-11T08:24:12Z")

</div>

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

> <https://stackoverflow.com/questions/11127654/why-is-progressevent-lengthcomputable-false/11848934#11848934>

---

<div class="post-metadata">

**Author:** ![Dhawal\_Gaur](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/dhawal_gaur/32/5495_2.png) [@Dhawal\_Gaur](https://discourse.threejs.org/u/Dhawal_Gaur)\
**Post date:** [July 11, 2018, 8:26am UTC](https://discourse.threejs.org/t/why-progressevent-lengthcomputable-is-false-of-onprogress-callback-of-a-model-loader-in-chrome/3409/3 "2018-07-11T08:26:23Z")

</div>

on godaddy using core PHP on server side

---

<div class="post-metadata">

**Author:** ![Mugen87](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/mugen87/32/5645_2.png) [@Mugen87](https://discourse.threejs.org/u/Mugen87)\
**Post date:** [July 11, 2018, 12:44pm UTC](https://discourse.threejs.org/t/why-progressevent-lengthcomputable-is-false-of-onprogress-callback-of-a-model-loader-in-chrome/3409/4 "2018-07-11T12:44:20Z")

</div>

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