Файловый менеджер - Редактировать - /home/digitalm/yhubita/wp-content/plugins/amp/vendor/ampproject/amp-toolbox/src/Optimizer/Error/CannotPreloadImage.php
Назад
<?php namespace AmpProject\Optimizer\Error; use AmpProject\Dom\Element; use AmpProject\Dom\ElementDump; use AmpProject\Optimizer\Error; /** * Optimizer error object for when a hero image cannot be preloaded. * * @package ampproject/amp-toolbox */ final class CannotPreloadImage implements Error { use ErrorProperties; const SRCSET_STRING = 'Not preloading the hero image because of the presence of a "srcset" attribute, which ' . 'can currently only be preloaded by Chromium-based browsers ' . '(see https://web.dev/preload-responsive-images/).'; /** * Instantiate a CannotPreloadImage object for an image with a srcset attribute. * * @param Element|null $element Optional. Image element that has the srcset attribute, or null if no element. * @return self */ public static function fromImageWithSrcsetAttribute(?Element $element = null) { $message = self::SRCSET_STRING; if ($element !== null) { $message .= "\n" . new ElementDump($element); } return new self($message); } }
| ver. 1.4 |
Github
|
.
| PHP 8.3.23 | Генерация страницы: 0.05 |
proxy
|
phpinfo
|
Настройка