diff --git a/Block/Adminhtml/System/Config/Form/Info.php b/Block/Adminhtml/System/Config/Form/Info.php index c2e2aae..dcb5c84 100755 --- a/Block/Adminhtml/System/Config/Form/Info.php +++ b/Block/Adminhtml/System/Config/Form/Info.php @@ -1,7 +1,7 @@ " or with a notice of your own that is not confusingly similar to the notice in this License; and (iii) You may not claim that your original works are open source software unless your Modified License has been approved by Open Source Initiative (OSI) and You comply with its license review and certification process. \ No newline at end of file +Please visit Magefan.com for license details (https://magefan.com/end-user-license-agreement) \ No newline at end of file diff --git a/Model/Controller/ResultPlugin.php b/Model/Controller/ResultPlugin.php index be7a008..8d30236 100644 --- a/Model/Controller/ResultPlugin.php +++ b/Model/Controller/ResultPlugin.php @@ -1,7 +1,7 @@ scopeConfig->getValue( 'mfrocketjavascript/general/enabled', \Magento\Store\Model\ScopeInterface::SCOPE_STORE + ) && $this->scopeConfig->getValue( + 'mfrocketjavascript/general/enable_deferred_javascript', + \Magento\Store\Model\ScopeInterface::SCOPE_STORE ); /* check if Plumrocket AMP enabled */ diff --git a/Plugin/Deploy/Package/Bundle/RequireJsPlugin.php b/Plugin/Deploy/Package/Bundle/RequireJsPlugin.php index 7454978..042cf5d 100644 --- a/Plugin/Deploy/Package/Bundle/RequireJsPlugin.php +++ b/Plugin/Deploy/Package/Bundle/RequireJsPlugin.php @@ -1,7 +1,7 @@ scopeConfig->getValue(self::BUNDLING_OPTIMIZATION_ENABLED, ScopeInterface::SCOPE_STORE); + $jsOptimization = $this->scopeConfig->getValue(self::BUNDLING_OPTIMIZATION_ENABLED, ScopeInterface::SCOPE_STORE) + && $this->scopeConfig->getValue('mfrocketjavascript/general/enabled', ScopeInterface::SCOPE_STORE); if ($jsOptimization) { $allowedFiles = $this->getAllowedFiles(); diff --git a/composer.json b/composer.json index 50d7f89..16b7b16 100644 --- a/composer.json +++ b/composer.json @@ -2,11 +2,10 @@ "name": "magefan/module-rocketjavascript", "description": "Move all javascripts to the footer on Magento 2 store.", "require": { - "magefan/module-community" : ">=2.0.4" + "magefan/module-community" : ">=2.0.10" }, "type": "magento2-module", - "version": "2.1.3", - "license": "OSL-3.0", + "version": "2.1.4", "authors": [ { "name": "Magefan", diff --git a/etc/acl.xml b/etc/acl.xml index 908a1b1..8dc3afa 100644 --- a/etc/acl.xml +++ b/etc/acl.xml @@ -2,7 +2,7 @@ - + diff --git a/registration.php b/registration.php index 1a84be2..8a741fa 100644 --- a/registration.php +++ b/registration.php @@ -1,7 +1,7 @@