File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
lib/internal/Magento/Framework/View/Result Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -245,11 +245,14 @@ protected function render(HttpResponseInterface $response)
245
245
if ($ this ->getPageLayout ()) {
246
246
$ config = $ this ->getConfig ();
247
247
$ this ->addDefaultBodyClasses ();
248
+ $ addCritical = $ this ->getLayout ()->getBlock ('head.critical ' );
248
249
$ addBlock = $ this ->getLayout ()->getBlock ('head.additional ' ); // todo
249
250
$ requireJs = $ this ->getLayout ()->getBlock ('require.js ' );
250
251
$ this ->assign ([
251
- 'requireJs ' => $ requireJs ? $ requireJs ->toHtml () : null ,
252
252
'headContent ' => $ this ->pageConfigRenderer ->renderHeadContent (),
253
+ 'headCritical ' => $ addCritical ? $ addCritical ->toHtml () : null ,
254
+ 'requireJs ' => $ requireJs ? $ requireJs ->toHtml () : null ,
255
+ 'headAssets ' => $ this ->pageConfigRenderer ->renderHeadAssets (),
253
256
'headAdditional ' => $ addBlock ? $ addBlock ->toHtml () : null ,
254
257
'htmlAttributes ' => $ this ->pageConfigRenderer ->renderElementAttributes ($ config ::ELEMENT_TYPE_HTML ),
255
258
'headAttributes ' => $ this ->pageConfigRenderer ->renderElementAttributes ($ config ::ELEMENT_TYPE_HEAD ),
You can’t perform that action at this time.
0 commit comments