Compare commits

..

2 Commits

Author SHA1 Message Date
efa97aaaf3 IMPR: Deffer css loading 2023-11-22 03:05:47 +02:00
b101030a43 FIX: Logical struture there's should be only one <main> 2023-11-21 23:14:49 +02:00
2 changed files with 3 additions and 3 deletions

View File

@ -165,7 +165,7 @@ class DeferredRequirements implements TemplateGlobalProvider
{
$external = (mb_strpos($css, '//') === 0 || mb_strpos($css, 'http') === 0);
//if (self::getDeferred() && !self::webpackActive()) {
if ($external) {
if ((self::getDeferred() && !self::webpackActive()) || $external) {
self::$css[] = $css;
} else {
WebpackTemplateProvider::loadCSS(self::get_url($css));

View File

@ -16,12 +16,12 @@
<% include Header %>
</header>
<main id="MainContent" class="page-content" data-ajax-region="LayoutAjax">
<div id="MainContent" class="page-content" data-ajax-region="LayoutAjax">
<% if $isFormResponse %>
<%-- Legacy code compatibility --%>
<% include MainContent Layout=$Layout %>
<% end_if %>
</main>
</div>
</div>
<footer id="Footer" class="site-footer footer">