Иконка ресурса

Плагин XFOptimize - Minify, Preconnect & Preload v1.0.1 Release Candidate 2

плагин оптимизации Xenforo
  • Added new feature to not lazy load the first post attachment (now recommended by Page Speed Insights & GTMetrix)
  • Made numerous improvements to template modifications in order to prevent conflict with third-party addons and styles
  • Moved several search & replace functions to more reliable REGEX
  • Improved efficiency of some PHP handlers
  • Fixed an issue which could affect the head/title area in UI.X
  • Fixed an issue which could cause preload or preconnect URLs not to render in the head section of certain themes
  • Established base code for future shared UI & recommendations system with other Nulumia addons for a future update
  • Added several important compatibility fixes with [Nulumia] SEO & Index Tools
  • Added compatibility fixes for [Nulumia] Cloudflare Image Resizing
  • Added compatibility fixes for [XON] Lazy Image Loading
  • Updated option group order in the Admin -> Options list to be alphabetized among [Nulumia] addons

To update your theme, please download the latest version at:


You must select "Overwrite files during install/upgrade" when upgrading to this version.

Overview

This update adds multiple small improvements, conflict fixes and greater efficiency for the PHP handlers. Additionally, a new feature is available via the settings page to disable lazy loading for the first post attachment (Above the fold / LCP) image of thread pages.

This is a new recommendation reported by both GTMetrix and Page Speed Insights, and can affect speed scoring. As such, this addon has been updated to reflect this metric.

Lazy loading your LCP image (e.g., hero image, main slider, etc.) can have a detrimental effect on your page's LCP timing. While you should lazy load offscreen images on your page, it's not recommended to lazy load above-the-fold content like your LCP image in the interest of achieving a fast...
gtmetrix.com

Further, several key compatibility issues have been added for [Nulumia] SEO & Index Tools and [XON] Lazy Image Loading.

Finally, there are several tweaks to make XFOptimize work hand in hand with the new [Nulumia] Cloudflare Image Resizing addon.

New feature to disable LCP Lazy Load + note to disable switching mobile attachments when using Cloudfare Image Resizing:

1652861043582.png
Если обновляете плагин, через админку, путем загрузки, обязательно поставить галочку - переписать все данные.
  • Исправлена ошибка, из-за которой добавленные URL-адреса предварительного подключения не отображались в некоторых инструментах для веб-мастеров (Bing, Google и т. д.).
  • Исправлена ошибка, которая могла вызвать ошибку «Попытка доступа к смещению массива типа bool».
  • Исправлено несколько ошибок, которые могли возникнуть при использовании библиотеки TinyMinify.
  • Добавлен новый простой метод минификации регулярных выражений.
  • Скорректирован прослушиватель minify PHP для немного большей эффективности.
  • Слушатель Minify теперь отключается намного раньше, если не требуются методы оптимизации.
  • Метки уровня риска теперь имеют цветовую кодировку для библиотеки HTMLMinifier (самый низкий-высокий).
  • Добавлен новый макет страницы визуальных настроек с быстрыми ссылками на различные сайты тестирования скорости (GTMetrix и т. д.).

Обзор​

Это обновление исправляет ряд ошибок, о которых сообщили пользователи, в том числе ошибки PHP при использовании библиотеки TinyMinify. Также на страницу настроек добавлен новый визуальный заголовок с быстрыми ссылками на инструменты тестирования скорости.

Замечание по использованию тегов <!CDATA>
Некоторые пользователи сообщают о поломке внешнего интерфейса при использовании библиотеки HTMLMinifier и при наличии тегов CDATA. Ниже приведен пример сценария

JavaScript:
<script type="text/javascript">
    <![CDATA[
        alert("Hello World");
    ]]>
</script>
Сверху Снизу