feat: make position of <style>
tags configurable in hydrateDocument()
#5915
Labels
Help Wanted
Resolution: Refine
This PR is marked for Jira refinement. We're not working on it - we're talking it through.
Prerequisites
Describe the Feature Request
It would be helpful if
hydrateDocument()
could be configured as to where generated inline <style> tags will be placed.Describe the Use Case
When the document is hydrated, the inline
<style>
tags created for the Stencil components are placed at the top of the<head>
section. This placement can delay the loading of<link>
tags, such as those with arel="preconnect"
value, which are crucial for performance optimization. Ideally, the placement of these styles should be configurable to avoid such issues.Sample input:
Output:
Describe Preferred Solution
Make
hydrateDocument()
configurable as to where generated style tags are placed.Describe Alternatives
No response
Related Code
A well-documented reproduction of the use-case/issue can be found here:
https://github.com/mhoritani/stencil-repro-072024
Additional Information
No response
The text was updated successfully, but these errors were encountered: