Search for optimize

  1. Search 7.x for optimize
  2. Search 9.5.x for optimize
  3. Search 8.9.x for optimize
  4. Search 11.x for optimize
  5. Other projects
Title Object type File name Summary
CssOptimizer class core/lib/Drupal/Core/Asset/CssOptimizer.php Optimizes a CSS asset.
CssOptimizer.php file core/lib/Drupal/Core/Asset/CssOptimizer.php
CssOptimizer::$fileUrlGenerator property core/lib/Drupal/Core/Asset/CssOptimizer.php The file URL generator.
CssOptimizer::$rewriteFileURIBasePath property core/lib/Drupal/Core/Asset/CssOptimizer.php The base path used by rewriteFileURI().
CssOptimizer::clean function core/lib/Drupal/Core/Asset/CssOptimizer.php Processes the contents of a CSS asset for cleanup.
CssOptimizer::loadFile function core/lib/Drupal/Core/Asset/CssOptimizer.php Loads the stylesheet and resolves all @import commands.
CssOptimizer::loadNestedFile function core/lib/Drupal/Core/Asset/CssOptimizer.php Loads stylesheets recursively and returns contents with corrected paths.
CssOptimizer::optimize function core/lib/Drupal/Core/Asset/CssOptimizer.php Optimizes an asset.
CssOptimizer::processCss function core/lib/Drupal/Core/Asset/CssOptimizer.php Processes the contents of a stylesheet for aggregation.
CssOptimizer::processFile function core/lib/Drupal/Core/Asset/CssOptimizer.php Processes CSS file and adds base URLs to any relative resource paths.
CssOptimizer::rewriteFileURI function core/lib/Drupal/Core/Asset/CssOptimizer.php Prefixes all paths within a CSS file for processFile().
CssOptimizer::__construct function core/lib/Drupal/Core/Asset/CssOptimizer.php Constructs a CssOptimizer.
CssOptimizerUnitTest class core/tests/Drupal/Tests/Core/Asset/CssOptimizerUnitTest.php Tests the CSS asset optimizer.
CssOptimizerUnitTest.php file core/tests/Drupal/Tests/Core/Asset/CssOptimizerUnitTest.php
CssOptimizerUnitTest::$backupGlobals property core/tests/Drupal/Tests/Core/Asset/CssOptimizerUnitTest.php
CssOptimizerUnitTest::$fileUrlGenerator property core/tests/Drupal/Tests/Core/Asset/CssOptimizerUnitTest.php The file URL generator mock.
CssOptimizerUnitTest::$optimizer property core/tests/Drupal/Tests/Core/Asset/CssOptimizerUnitTest.php A CSS asset optimizer.
CssOptimizerUnitTest::providerTestOptimize function core/tests/Drupal/Tests/Core/Asset/CssOptimizerUnitTest.php Provides data for the CSS asset optimizing test.
CssOptimizerUnitTest::setUp function core/tests/Drupal/Tests/Core/Asset/CssOptimizerUnitTest.php
CssOptimizerUnitTest::testOptimize function core/tests/Drupal/Tests/Core/Asset/CssOptimizerUnitTest.php Tests optimizing a CSS asset group containing 'type' => 'file'.
CssOptimizerUnitTest::testTypeExternal function core/tests/Drupal/Tests/Core/Asset/CssOptimizerUnitTest.php Tests a CSS asset with 'type' => 'external'.
CssOptimizerUnitTest::testTypeFilePreprocessingDisabled function core/tests/Drupal/Tests/Core/Asset/CssOptimizerUnitTest.php Tests a file CSS asset with preprocessing disabled.
css_input_simple_with_media.css.optimized.css file core/tests/Drupal/Tests/Core/Asset/css_test_files/css_input_simple_with_media.css.optimized.css @media screen{body{margin:0;padding:0;background:#edf5fa;font:76%/170% Verdana,sans-serif;color:#494949;}
}
css_input_without_import.css.optimized.css file core/tests/Drupal/Tests/Core/Asset/css_test_files/css_input_without_import.css.optimized.css body{margin:0;padding:0;background:#edf5fa;font:76%/170% Verdana,sans-serif;color:#494949;}.this .is .a .test{font:1em/100% Verdana,sans-serif;color:#494949;}.this
.is
.a
.test{font:1em/100% Verdana,sans-serif;color:#494949;}some :pseudo…
css_input_with_import.css.optimized.aggregated.css file core/tests/Drupal/Tests/Core/Asset/css_test_files/css_input_with_import.css.optimized.aggregated.css @import url("https://fonts.fontprovider.com/css2?family=Roboto+Mono:wght@300;400&family=Roboto:ital,wght@0,300;0,400;1,300;1,400&display=swap") print;@import url('import1.css') screen;@import…
css_input_with_import.css.optimized.css file core/tests/Drupal/Tests/Core/Asset/css_test_files/css_subfolder/css_input_with_import.css.optimized.css ul,select{font:1em/160% Verdana,sans-serif;color:#494949;}.ui-icon{background-image:url(../images/icon.png);}.data .double-quote{background-image:url("data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7");}.data…
css_input_with_import.css.optimized.css file core/tests/Drupal/Tests/Core/Asset/css_test_files/css_input_with_import.css.optimized.css ul,select{font:1em/160% Verdana,sans-serif;color:#494949;}.ui-icon{background-image:url(images/icon.png);}.data .double-quote{background-image:url("data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7");}.data…
css_license.css.optimized.aggregated.css file core/tests/Drupal/Tests/Core/Asset/css_test_files/css_license.css.optimized.aggregated.css @import url("https://fonts.fontprovider.com/css2?family=Roboto+Mono:wght@300;400&family=Roboto:ital,wght@0,300;0,400;1,300;1,400&display=swap") print;@import url('import1.css') screen;@import…
EntityConverterLatestRevisionTest::testOptimizedConvert function core/tests/Drupal/KernelTests/Core/ParamConverter/EntityConverterLatestRevisionTest.php Tests that pending revisions are loaded only when needed.
import3.css.optimized.css file core/tests/Drupal/Tests/Core/Asset/css_test_files/import3.css.optimized.css div{clip-path:url('#clip-cloud');}div{clip-path:url('/abc/#clip-cloud');}
JsCollectionOptimizer class core/lib/Drupal/Core/Asset/JsCollectionOptimizer.php Optimizes JavaScript assets.
JsCollectionOptimizer.php file core/lib/Drupal/Core/Asset/JsCollectionOptimizer.php
JsCollectionOptimizer::$dumper property core/lib/Drupal/Core/Asset/JsCollectionOptimizer.php An asset dumper.
JsCollectionOptimizer::$fileSystem property core/lib/Drupal/Core/Asset/JsCollectionOptimizer.php The file system service.
JsCollectionOptimizer::$grouper property core/lib/Drupal/Core/Asset/JsCollectionOptimizer.php A JS asset grouper.
JsCollectionOptimizer::$optimizer property core/lib/Drupal/Core/Asset/JsCollectionOptimizer.php A JS asset optimizer.
JsCollectionOptimizer::$state property core/lib/Drupal/Core/Asset/JsCollectionOptimizer.php The state key/value store.
JsCollectionOptimizer::deleteAll function core/lib/Drupal/Core/Asset/JsCollectionOptimizer.php Deletes all optimized asset collections assets.
JsCollectionOptimizer::generateHash function core/lib/Drupal/Core/Asset/JsCollectionOptimizer.php Generate a hash for a given group of JavaScript assets.
JsCollectionOptimizer::getAll function core/lib/Drupal/Core/Asset/JsCollectionOptimizer.php Returns all optimized asset collections assets.
JsCollectionOptimizer::optimize function core/lib/Drupal/Core/Asset/JsCollectionOptimizer.php The cache file name is retrieved on a page load via a lookup variable that
contains an associative array. The array key is the hash of the names in
$files while the value is the cache file name. The cache file is generated
in two cases. First, if…
JsCollectionOptimizer::__construct function core/lib/Drupal/Core/Asset/JsCollectionOptimizer.php Constructs a JsCollectionOptimizer.
JsCollectionOptimizerLazy class core/lib/Drupal/Core/Asset/JsCollectionOptimizerLazy.php Optimizes JavaScript assets.
JsCollectionOptimizerLazy.php file core/lib/Drupal/Core/Asset/JsCollectionOptimizerLazy.php
JsCollectionOptimizerLazy::deleteAll function core/lib/Drupal/Core/Asset/JsCollectionOptimizerLazy.php Deletes all optimized asset collections assets.
JsCollectionOptimizerLazy::getAll function core/lib/Drupal/Core/Asset/JsCollectionOptimizerLazy.php Returns all optimized asset collections assets.
JsCollectionOptimizerLazy::optimize function core/lib/Drupal/Core/Asset/JsCollectionOptimizerLazy.php Optimizes a collection of assets.
JsCollectionOptimizerLazy::optimizeGroup function core/lib/Drupal/Core/Asset/JsCollectionOptimizerLazy.php Optimizes a specific group of assets.
JsCollectionOptimizerLazy::__construct function core/lib/Drupal/Core/Asset/JsCollectionOptimizerLazy.php Constructs a JsCollectionOptimizerLazy.
JsOptimizer class core/lib/Drupal/Core/Asset/JsOptimizer.php Optimizes a JavaScript asset.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.