Skip to content

大佬,请问一下如何保证动态主题的style标签永远在head标签内最后一个呢 #15

@iota9star

Description

@iota9star

因为是异步组件,异步组件加载以后会新增style标签,然后覆盖之前的动态主题的style标签样式
我想到的办法:

  1. 把style标签放到body里面,但不太符合规范
  2. 监听head标签dom变化,手动将动态主题style标签移动到最后一位,但有性能问题

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions