magento / magento/community-features
There should be a new additional head block
- Dominant language
- No language data
- Stars
- 46
- Forks
- 14
- PR merge metrics
- No merged PRs in 30d
Description
Hello together,
there should be a way to call a critical block in the head, as an example head.critical, similar to head.additional
For what would this block:
- For improve the Time to First Draw (TTFD) of the web page like inline css but which is above the CSS files.
- For critical areas which cannot be covered by default_head_blocks, like
- In combination with the use of "Move JS code to the bottom of the page" + "Crtical CSS" there could be scripts in here that are excluded from moving for example

There is no way to customize it via the root template:

Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the root template and trace how head.additional and default_head_blocks are exposed and rendered. Check how the proposed head.critical block should interact with critical CSS and the option to move JavaScript to the bottom. Done means the new block can be customized and produces the requested ordering and exclusions in the page head.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- css, javascript
- Domain
- frontend, web-dev
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100