mirror of
https://github.com/a2nt/cms-niceties.git
synced 2024-10-22 09:05:46 +00:00
IMPR: Deffer css loading
This commit is contained in:
parent
b101030a43
commit
efa97aaaf3
@ -165,7 +165,7 @@ class DeferredRequirements implements TemplateGlobalProvider
|
|||||||
{
|
{
|
||||||
$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) {
|
if ((self::getDeferred() && !self::webpackActive()) || $external) {
|
||||||
self::$css[] = $css;
|
self::$css[] = $css;
|
||||||
} else {
|
} else {
|
||||||
WebpackTemplateProvider::loadCSS(self::get_url($css));
|
WebpackTemplateProvider::loadCSS(self::get_url($css));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user