Comments (6)
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.
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.
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.
Preboot suffers from various kinds of race conditions; I described some of them in #82.
from preboot.
See PR #83
from preboot.
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)
- Setting Focus is not applying to screenreader elements, only TextArea and Input elements HOT 5
- question: a clicks by default event selector HOT 1
- New version changelog? What's in v5.1.7? HOT 1
- server app instance not removed from DOM after client bootstraps app HOT 6
- Adding Preboot to Angular SSR causes webpack error
- Prebootoverlay doesn't removed in mobile view
- Angular Component styles not linked properly during preboot (_ngcontent-serverApp-c16 vs _ngcontent-sc16) HOT 1
- Generic type 'ModuleWithProviders<T>' requires 1 type argument(s). Angular 11 HOT 3
- Is this repository still maintained? HOT 2
- Module not found Angular 11 + Universal SSR HOT 2
- Flicker due to styles reload HOT 2
- Illegal invocation calling window.getComputedStyle HOT 29
- Angular 13 support HOT 4
- Project Status?
- Preboot buffer: Application bootstrap on the server generated node. HOT 6
- Error: Cannot set property 'prebootData' of undefined HOT 2
- Inline start function uses wrong 'currentScript'. HOT 5
- Cleanup is not removing event listeners HOT 6
- Support for Angular 7
- Support Angular 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from preboot.