Skip to content

listener for DOMContentLoaded and window resize #1384

Closed
@adrianhall

Description

One of the concrete things I want to do is to resize a font within the shadow DOM when the window is resized. However the attached event fires before the DOM is ready and I can't just listen to resize events on an object. It would be ideal to enable something like:

listeners: {
   'document.DOMContentLoaded': 'domReady',
   'window.resize': 'resizeObserver'
},

Alternative / workaround is to use addEventListener to set the event handler.

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions