Same name in other branches
- 6.0.x src/Asset/AssetOptimizer.php \Drupal\advagg\Asset\AssetOptimizer::addDnsPrefetch()
- 8.x-3.x src/Asset/AssetOptimizer.php \Drupal\advagg\Asset\AssetOptimizer::addDnsPrefetch()
- 8.x-4.x src/Asset/AssetOptimizer.php \Drupal\advagg\Asset\AssetOptimizer::addDnsPrefetch()
Extract any domains to prefetch DNS.
Parameters
array $asset: A core asset definition array.
Return value
array An array of domains to prefetch.
1 call to AssetOptimizer::addDnsPrefetch()
- AssetOptimizer::scanFile in src/
Asset/ AssetOptimizer.php - Given a filename calculate various hashes, gather meta data then optimize.
2 methods override AssetOptimizer::addDnsPrefetch()
- CssOptimizer::addDnsPrefetch in src/
Asset/ CssOptimizer.php - Extract any domains to prefetch DNS.
- JsOptimizer::addDnsPrefetch in src/
Asset/ JsOptimizer.php - Extract any domains to prefetch DNS.
File
-
src/
Asset/ AssetOptimizer.php, line 388
Class
- AssetOptimizer
- Defines the base AdvAgg optimizer.
Namespace
Drupal\advagg\AssetCode
protected abstract function addDnsPrefetch(array $asset);