Global Script Update and Transition to Pure JavaScript
As part of a global update, all core scripts of the Hotlist.biz platform websites have been rewritten to work almost without using the jQuery library.
Benefits of this approach:
- Reduced page weight: no need to load the entire jQuery library, which decreases script size and speeds up page rendering.
- Improved performance: native JavaScript runs faster, especially on mobile devices and low-powered browsers.
- Dependency control: each script is loaded only when required.
- Flexibility and scalability: the code can be easily adapted to new features without being tied to a specific jQuery version.
Current implementation:
- In the admin center, jQuery is still loaded automatically to support legacy plugins.
- On the frontend, websites can now operate entirely on pure JavaScript.
- All libraries and additional scripts are loaded dynamically, on demand, for specific user tasks, without preloading large files.
Main updates:
- Pop-up windows and the form builder have been completely rewritten in native JS.
- Product widgets: product slider, swipe mode, touch scrolling, and dynamic content loading on scroll.
- Menus: updated scripts for the main menu and the simple mobile menu.
- Product sorting scripts have been updated.
- Cart and product adding:
- The product add-to-cart module has been updated.
- The spinner and quantity switcher for adding products to the cart have been updated.
- The script for displaying product variants in lists and during mouse-based editing has been updated.
- The script for displaying products added to the cart (hover popup on the cart icon) has been updated.
- AJAX requests have been fully rewritten in standard JavaScript for loading pages, products, articles, forms, and comments.
Future plans:
- A gradual transition to a fully modular architecture without jQuery, while maintaining compatibility with the administrative interface.
- Since many users rely on their own jQuery-based scripts, a global option will be introduced to enable loading the library on the site when needed.