Giter Site home page Giter Site logo

Lazy loading about model-element HOT 5 OPEN

immersive-web avatar immersive-web commented on May 30, 2024
Lazy loading

from model-element.

Comments (5)

donmccurdy avatar donmccurdy commented on May 30, 2024 1

Many formats include sub-resources of some kind. glTF files cannot reference other glTF files, but might reference:

External textures — textures shared by many models can be requested and cached independently. Or the model might contain KTX2 or WebP textures, with fallback to PNG or JPEG if the better formats are not supported.

External binary buffers — a user might separate the binary resources for animations into separate .bin files so they are not downloading more than they need up front, among other use cases.

That said, we could prohibit external resources. Most formats are also able to embed everything in a single binary file if desired. OBJ+MTL is the only exception I'm aware of that cannot be packaged as a single file.

from model-element.

mikkoh avatar mikkoh commented on May 30, 2024

Would this attribute also define loading for the poster?

from model-element.

marcoscaceres avatar marcoscaceres commented on May 30, 2024

Maybe... I guess that would make sense. At least, we could say, "lazy load the poster first when in view, then the model".

from model-element.

cabanier avatar cabanier commented on May 30, 2024

Are there other formats that loads subresources? (SVG images?)
Since rendering and parsing happens outside the UA, it seems the loading of subresources is complicated.

from model-element.

cabanier avatar cabanier commented on May 30, 2024

Many formats include sub-resources of some kind.

I meant in a regular browser :-)
There's HTML using an iframe which is very complex. I believe SVG images don't allow subresources.

That said, we could prohibit external resources. Most formats are also able to embed everything in a single binary file if desired. OBJ+MTL is the only exception I'm aware of that cannot be packaged as a single file.

+1

from model-element.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.