What this solution does
The mrLexndr.minifier module for 1C-Bitrix accelerates page loading during peak traffic. Slow websites lose customers, and heavy code lowers search rankings. Standard compression plugins often break layouts or overload the processor as traffic grows. This module optimizes resources without risking design integrity or server stability.
Pages load in fractions of a second, helping retain customers and improve search engine positions. The algorithm automatically recognizes interactive elements such as contact forms, text fields, buttons, and icons while preserving their original appearance. Lazy loading for images is configured so that content at the bottom of the page loads only upon scrolling. The script immediately renders the site header and the first three images, preventing logo and banner flickering. Optimized code works smoothly on smartphones even with weak mobile connections, increasing conversion rates.
Code optimization is tailored for projects with up to 100,000 visitors. The algorithm applies compression rules designed specifically for large online stores and portals.
JavaScript Code Splitting
The module splits scripts into base and page-specific parts. The base code is loaded once and cached in the browser for use across all pages, while specific scripts are loaded only where needed. This eliminates unnecessary data transfer during site navigation.
Protection Against Parallel Requests
During sudden traffic spikes, standard compression plugins may attempt to rebuild cache files thousands of times simultaneously, causing the server to become unresponsive. The mrLexndr.minifier module uses atomic file locking. One thread builds the archive in the background while other users receive ready-made pages immediately.
Background Cache Cleanup
Clearing large cache volumes (several gigabytes) often hangs the system due to attempts to physically delete files. The technology instantly moves outdated data to an isolated folder, freeing resources in milliseconds. The module then deletes files in 50 MB chunks in the background without overloading the CPU.
Cryptographic File Protection
The module computes hash sums for all generated files. If an attacker attempts to tamper with code via a CDN or inject malicious content into the cache, the browser blocks script execution, protecting the project's reputation. Compressed files are asynchronously uploaded to cloud storage, distributing network load and reducing server strain. The tool generates Source Maps, allowing developers to debug and locate errors in DevTools without interference from code minification. Additional algorithms optimize color values in the codebase and compress embedded SVG graphics before integration into styles. Settings allow excluding specific sections, such as the shopping cart or user account, from processing using masks or regular expressions that do not cause system hangs. Once installed, the module operates automatically without requiring manual oversight.
General iT can install and configure this module and check how it works on your website.