Jump to content

New enableOfflineSupport property to avoid checking for .manifest


davrous
 Share

Recommended Posts

Hi guys,

 

 We often have this question: why does babylon.js generate a failing XHR request for this strange .manifest file? It's because it was the only way I've found to check if the user would like to cache into our IndexedDB layer the scene and/or the textures: http://doc.babylonjs.com/page.php?p=22231

 

 But it often generates confusion and some people are not interested in our offline features. We're currently working on a big project (top secret for now but to be launched by the end of the year) where the developers have requested to avoid having those XHR useless requests for them.

 

 I’ve just updated the code. I’ve added an enableOfflineSupport boolean property set to true by default (to keep the current default behavior for our users). If you’re set the value to false, we won’t query anymore for a .manifest file for potential IDB usage.

 

Usage:

 

        var engine = new BABYLON.Engine(canvas, true);

    engine.enableOfflineSupport = false;

 

                Both importMesh and load functions on our SceneLoader object are impacted. So, simply setting this boolean in your code should remove all failing .manifest XHR calls. I’ve pushed the update on our github repo. Files affected:

 

 

Bye,

 

David

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...