Skip to content

IDOM Component: Deferred Loader #725

Closed as not planned
Closed as not planned

Description

@Archmonger

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.

Activity

  1. added this to the milestone on Apr 8, 2022
  2. added
    priority-3-lowMay be resolved one any timeline.
    and removed on Apr 8, 2022
  3. changed the title [-]Deferred Loader IDOM Component[/-] [+]IDOM Component: Deferred Loader[/+] on Apr 8, 2022
  4. modified the milestones: , on Jan 29, 2023
  5. removed this from the milestone on Feb 21, 2023
  6. Archmonger commented on Mar 18, 2023

    @Archmonger
    ContributorAuthor

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

  7. Archmonger commented on Feb 23, 2024

    @Archmonger
    ContributorAuthor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority-3-lowMay be resolved one any timeline.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions