Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add a way for content to not be displayed until async assets (f.e. link elements) are loaded. #14

Open
trusktr opened this issue Apr 16, 2024 · 0 comments

Comments

@trusktr
Copy link
Member

trusktr commented Apr 16, 2024

FUOC is something that people generally wish they didn't have to deal with. To make things easier, perhaps we can add an option that will automatically keep content hidden until async content in a element's ShadowRoot has finished loading.

What we may need is some sort of convention for all elements to follow. For example, maybe elements specify a list of the elements (from their template) that load stuff, then the base Element class can wait for load events on all of them, and finally emit a load event on the owning element. This setup then allows any higher-up elements to do the same thing, and so on.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant