Skip to content

Commit 73eeb05

Browse files
authored
Update Page.php
1 parent a243b81 commit 73eeb05

File tree

1 file changed

+4
-1
lines changed
  • lib/internal/Magento/Framework/View/Result

1 file changed

+4
-1
lines changed

lib/internal/Magento/Framework/View/Result/Page.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,11 +245,14 @@ protected function render(HttpResponseInterface $response)
245245
if ($this->getPageLayout()) {
246246
$config = $this->getConfig();
247247
$this->addDefaultBodyClasses();
248+
$addCritical = $this->getLayout()->getBlock('head.critical');
248249
$addBlock = $this->getLayout()->getBlock('head.additional'); // todo
249250
$requireJs = $this->getLayout()->getBlock('require.js');
250251
$this->assign([
251-
'requireJs' => $requireJs ? $requireJs->toHtml() : null,
252252
'headContent' => $this->pageConfigRenderer->renderHeadContent(),
253+
'headCritical' => $addCritical ? $addCritical->toHtml() : null,
254+
'requireJs' => $requireJs ? $requireJs->toHtml() : null,
255+
'headAssets' => $this->pageConfigRenderer->renderHeadAssets(),
253256
'headAdditional' => $addBlock ? $addBlock->toHtml() : null,
254257
'htmlAttributes' => $this->pageConfigRenderer->renderElementAttributes($config::ELEMENT_TYPE_HTML),
255258
'headAttributes' => $this->pageConfigRenderer->renderElementAttributes($config::ELEMENT_TYPE_HEAD),

0 commit comments

Comments
 (0)