View Single Post
  #4  
Old 08-01-2017, 02:55 AM
 
xgarb xgarb is offline
 

eXpert
  
Join Date: Jul 2004
Location: UK
Posts: 262
 

Default Re: HTTP/2 JS and CSS aggregation

A question on CSS being loaded..

This code:
Code:
namespace XLite\Module\XC\CrispWhiteSkin\Module\Amazon\PayWithAmazon\View; /** * @Decorator\Depend ("Amazon\PayWithAmazon") */ class AmazonCheckout extends \XLite\Module\Amazon\PayWithAmazon\View\AmazonCheckout implements \XLite\Base\IDecorator { public function getCSSFiles() { $list = parent::getCSSFiles(); $list[] = [ 'file' => 'css/less/checkout.less', 'media' => 'screen', 'merge' => 'bootstrap/css/bootstrap.less', ]; return $list; } }
Does this add the LESS file to the list when in checkout only or (as I imagine) it's added to the giant CSS file for all pages?

I want to reduce the size on the general CSS file. It's way to big. On the X-cart demo page...



some is probably because it's the demo page but... wow! Way too much.
__________________
Core version: 5.3.xx
PHP: 5.6
MySQL: 5.5.50-cll
Web server: Apache
Reply With Quote