mirror of
https://github.com/a2nt/cms-niceties.git
synced 2024-10-22 11:05:46 +02:00
IMPR: no need to defer CSS
This commit is contained in:
parent
d90da8e66f
commit
aca235032e
@ -134,8 +134,9 @@ class DeferredRequirements implements TemplateGlobalProvider
|
|||||||
|
|
||||||
public static function loadCSS($css): void
|
public static function loadCSS($css): void
|
||||||
{
|
{
|
||||||
//$external = (mb_strpos($css, '//') === 0 || mb_strpos($css, 'http') === 0);
|
$external = (mb_strpos($css, '//') === 0 || mb_strpos($css, 'http') === 0);
|
||||||
if (self::getDeferred() && !self::webpackActive()) {
|
//if (self::getDeferred() && !self::webpackActive()) {
|
||||||
|
if ($external) {
|
||||||
self::$css[] = $css;
|
self::$css[] = $css;
|
||||||
} else {
|
} else {
|
||||||
WebpackTemplateProvider::loadCSS($css);
|
WebpackTemplateProvider::loadCSS($css);
|
||||||
|
Loading…
Reference in New Issue
Block a user