We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5038729 commit e471a1eCopy full SHA for e471a1e
src/Twig/Extension.php
@@ -44,6 +44,11 @@ public function addCssToExtract($rawHtml)
44
return $rawHtml;
45
}
46
47
+ public function hasCriticalHtml()
48
+ {
49
+ return count($this->pageSpecificCssService->getHtmlStore()->getSnippets()) > 0;
50
+ }
51
+
52
public function getCriticalCss()
53
{
54
return $this->pageSpecificCssService->getCssStore()->compileStyles();
0 commit comments