Skip to content

First frame after insertion FOUC #34

@dy

Description

@dy

That doesn't seem to be mentioned in readme, but the callback skips at least one frame after the element is inserted to DOM. So for example if there's initializer function for a rule, that adds some styles or content to an element that is added to DOM, the element still appears in DOM unstyled for a single frame, then the rule is hit. That creates FOUC.
I guess that can be prevented by hiding element for that frame in some way...
That is the case for spect. selector-observer doesn't have that issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions