
Dmitry Krotov
Resource Preloader
The module addresses resources that block rendering as identified by Google PageSpeed Insights, thereby accelerating site load times.
Аккаунт в General iT
Войдите или создайте аккаунт для управления услугами в панели.

MODULE FOR 1C-BITRIX
Dmitry Krotov
The WebP image converter module automatically transforms JPG and PNG images into WebP format directly during page load. The solution requires no complex setup and begins working immediately after activation. Conversion is performed dynamically for images, including those specified via background or background-image attributes in the HTML code.
The WebP image converter module automatically transforms JPG and PNG images into WebP format directly during page load. The solution requires no complex setup and begins working immediately after activation.
Conversion is performed dynamically for images, including those specified via background or background-image attributes in the HTML code. Lazyload support is available with the ability to define a custom list of attributes for image links. The module operates in composite mode and correctly handles external CDNs, such as Selectel.
For browsers that do not support the WebP format, original images are returned. The module can be disabled for specific domains, sections, or pages. Support for the srcset attribute is implemented.
The WebP format was developed specifically for web resources and provides reduced file weight compared to alternatives.


Format .jpg: 117 KB
Format .webp: 48 KB
Using modern image formats like WebP accelerates website loading and positively impacts search engine rankings. The Google PageSpeed Insights tool frequently recommends the improvement 'Use modern image formats' when scanning a site.

The need to implement modern image formats on your website can be assessed using the Google PageSpeed Insights tool.
To accelerate site loading, the LazyLoad PRO module is also available, providing one-click deferred loading for images, videos, and iframes. It is fully compatible with the Webp module for real-time conversion of images to modern formats.

To address the issue of resources blocking rendering, a separate module called Resource Preloader is available.

To optimize the size of HTML, JavaScript, and CSS code, use the HTML/JS/CSS Minification module.


General iT can connect “Webp - Image converter to the modern format 'on the fly'”, configure it and verify the integration with the existing website.
UPDATE HISTORY
Exception handling added
Fix in srcset processing
Fix for static call to get_http_response_code() function when processing with CDN
Added ability to limit processing of specific images by class
Added forced module connection in settings for correct demo mode detection
Minor improvement to the agent for deleting obsolete files
Fix display of module settings after the demo mode has expired
Fix file save path with CDN
Fix for cases where image/webp is served under a .jpg extension
Updates related to the bitrixcloud 20.100.0 update (the standard Bitrix CDN no longer works)
Fix handling of relative links to images with ../ in the file path
Fix generating links to files when CDN is enabled but local links are used
Fix saving module settings on PHP 8
Fix checking the CDN operation mode when calling the ConvertImage() function directly
Added support for the standard Bitrix CDN. The WebpConvert library namespace has been changed.
Fixed an error in outputting images with spaces in their names.
Changed the module publisher.
Added support for the srcset attribute.
Fixed W3C validator errors.
Added the ability to exclude the main page from processing.
Fixed errors in image processing by the cwebp library.
Added the ability to limit the number of simultaneously processed images to reduce peak server load.
Fix handling of $_SERVER["HTTP_HOST"] with a port number
Fix error in previous update (not all attributes from settings were processed)
Fix occurrence of blank page due to inclusion of huge inline scripts in the page body (e.g., by IPOL solutions)
Fix handling of src attribute with spaces before/after the equals sign
Compatibility fixes for lazyload
Fixed handling of Cyrillic links. Added handling of absolute links.
Minor fix in CDN handling
Handle error "Call to undefined function exif_imagetype"
Handle outdated version of imagick
Cache separation for operation modes with and without CDN usage.
Fixes for Ajax mode when using CDN
Added support for external CDNs.
Added handling of absolute links to internal images.
Added managed caching when retrieving links to .webp files.
Fixed handling of files with plus signs in names.
Minified JS file.
Compatibility with PHP 7.4
Added handling of quotes specified as the HTML entity ' in the style attribute
Replaced the function for checking browser support for WebP.
Added handling of the !important attribute during reverse image replacement.
Fixed the regular expression handling background and background-image
Added the ability to set a limitation on the module's operation based on the presence of a string in the URL
Extended lazyload support. Attributes specified in the module settings are now processed for all tags, not only img, to support lazy loading of background images. Added a check for the presence of suitable server modules for conversion.
Fixed processing of images with URL-encoded names (%D0%B2%D1%8B%D0%BD%D0%B3%D0%B0%D0%BF%D1%83%D1%80.jpg)
Changed the class loading method for correct operation of demo versions
Adjusted the JS update mechanism
Added support for background and background-image attributes
Added a GD library version check
Added module settings: activity, processed attributes. Now you can specify a list of processed attributes for img tags
Changed the HTML parsing method due to incorrect script processing. Now regular expressions are used; installing the php-xml extension (DomDocument class) is no longer required.
Fixed an error when working with the Aspro.Next template
Added support for the data-src image attribute (used for lazy loading)
YOUR PROJECT INFRASTRUCTURE
BEFORE YOU ORDER