Code Monkey home page Code Monkey logo

Comments (6)

thaibault avatar thaibault commented on May 18, 2024 1

Yes but if it takes more than 10ms to load the application's dom node after document.body is loaded it will fail. You can provoke this behavior if you add a "big" attribute value to the application's root domnode. But in the end you completely right:

"we might only need to add another condition to check that the application root is alive and well in the DOM"

So I'll rename this issue and try to work on a minimal reproduction repo when I find some time.

from preboot.

thaibault avatar thaibault commented on May 18, 2024

Maybe the issues only comes up for me caused by a big json object attached to my applications root node as attribute:

<application options="....big data to evaluate..."></application>

But the conceptual problem stays in my opinion.

from preboot.

CaerusKaru avatar CaerusKaru commented on May 18, 2024

Your opinion is a little misguided. The preboot code waits in a setTimeout loop until the body is ready, so to fit your use case, we might only need to add another condition to check that the application root is alive and well in the DOM.

In order to investigate your use case, please provide a minimal reproduction repo where preboot does not work or errors out. For all other applications, the first child in the body is generally available when the body is, at least by the time preboot needs it.

from preboot.

mgol avatar mgol commented on May 18, 2024

Preboot suffers from various kinds of race conditions; I described some of them in #82.

from preboot.

mgol avatar mgol commented on May 18, 2024

See PR #83

from preboot.

thaibault avatar thaibault commented on May 18, 2024

ok I think we can close this issue since @mgol great report #82 has much more details. PR #83 should be included.

from preboot.

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.