Skip to content

Commit

Permalink
fix: load styles before scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
BernhardBaumrock committed May 2, 2024
1 parent 3b997af commit 70de35f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion RockFrontend.module.php
Original file line number Diff line number Diff line change
Expand Up @@ -1462,8 +1462,8 @@ public function initPostCSS()
private function injectAssets(string &$html): void
{
$assets = '';
foreach ($this->autoloadScripts as $script) $assets .= $script->render();
foreach ($this->autoloadStyles as $style) $assets .= $style->render();
foreach ($this->autoloadScripts as $script) $assets .= $script->render();
$html = str_replace("</head>", "$assets</head>", $html);
}

Expand Down

0 comments on commit 70de35f

Please sign in to comment.