Skip to content
This repository was archived by the owner on Jun 30, 2018. It is now read-only.
This repository was archived by the owner on Jun 30, 2018. It is now read-only.

Does not work before body is available #2

@akxcv

Description

@akxcv

Logalize does not work before document.body is available for js manipulation. This is because Logalize tries to calculate styles by appending a temporary <div> element to the page. The style system should be rewritten in some other way.

Currently, Logalize prepends its styles directly to <head>, which allows to easily override them in other stylesheets. However, this strategy does not allow for caching and does not work until document.body is available.

We should probably use some kind of virtual CSS-in-JS and allow users to override it with regular stylesheets.

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