Replies: 2 comments
-
... or |
Beta Was this translation helpful? Give feedback.
0 replies
-
Relevant open issues:
Maybe we could have a "strict" mode, which would be partial by default - |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Body
Summary
Provide an imperative API for inserting head content (styles, scripts, etc) for use-cases where they might not be a
<head>
element.Background & Motivation
With the introduction of content collections which lazily adds styles it has become more difficult to maintain implicit head injection. Today in CC you are required to have a
<head>
element in the page that uses it.In 3.0 it would be good to completely remove implicit head injection. An imperative API for cases where a
<head>
doesn't exist would be a good replacement.Goals
Example
Something like:
Bikeshed:
Astro.injectHead()
Astro.headContent()
Astro.head()
Beta Was this translation helpful? Give feedback.
All reactions