Skip to content

IDOM Component: Deferred Loader #725

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

Closed
Archmonger opened this issue Apr 8, 2022 · 2 comments
Closed

IDOM Component: Deferred Loader #725

Archmonger opened this issue Apr 8, 2022 · 2 comments
Labels
priority-3-low May be resolved one any timeline.

Comments

@Archmonger
Copy link
Contributor

Archmonger commented Apr 8, 2022

Current Situation

Right now there's no method of deferring a component load until a list of CSS or JS has fully loaded.

Original Discussion

Proposed Actions

Develop a DeferredLoader component that waits until a list of CSS has loaded until rendering a component.

from idom.html import _, link

def my_top_level_component():
    return DeferredLoader(
        [
            link({"rel": "stylesheet", "href": "Path1.css"}),
            link({"rel": "stylesheet", "href": "Path2.css"}),
        ],
        my_deferred_component(),
    )

def my_deferred_component():
    pass

Note: onLoad/onError will trigger on successful/unsuccessful CSS loads. This event propagates up to a top-level div, so that simplifies this implementation.

@Archmonger Archmonger added the flag-triage Not prioritized. label Apr 8, 2022
@Archmonger Archmonger added this to the 2.0 milestone Apr 8, 2022
@Archmonger Archmonger added priority-3-low May be resolved one any timeline. and removed flag-triage Not prioritized. labels Apr 8, 2022
@Archmonger Archmonger changed the title Deferred Loader IDOM Component IDOM Component: Deferred Loader Apr 8, 2022
@Archmonger Archmonger modified the milestones: Luxury, Essential Jan 29, 2023
@rmorshea rmorshea removed this from the Essential milestone Feb 21, 2023
@Archmonger
Copy link
Contributor Author

@rmorshea We might want a type-external-package tag for issues tracked in core but would result in a completely new package.

@Archmonger
Copy link
Contributor Author

Closing this as it's probably better developed and maintained by a community member, if interest arises.

@Archmonger Archmonger closed this as not planned Won't fix, can't repro, duplicate, stale Feb 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority-3-low May be resolved one any timeline.
Projects
None yet
Development

No branches or pull requests

2 participants