mirror of
https://github.com/a2nt/cms-niceties.git
synced 2024-10-22 11:05:46 +02: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);
|
||||
//if (self::getDeferred() && !self::webpackActive()) {
|
||||
if ($external) {
|
||||
if ((self::getDeferred() && !self::webpackActive()) || $external) {
|
||||
self::$css[] = $css;
|
||||
} else {
|
||||
WebpackTemplateProvider::loadCSS(self::get_url($css));
|
||||
|
Loading…
Reference in New Issue
Block a user