Modern Frontends Based on HTMX
Author: Вим Деблаув
Printhouse: BHV
Age restrictions: 16+
Year of publication: 2025
ISBN: 9786011234658
Number of pages: 272
Size: 250х170х13 mm
Cover type: soft
Weight: 363 g
ID: 1738644
Practical approaches to creating modern dynamic web interfaces and web applications using HTMX are considered — a technology that allows building interactive applications based on HTML with minimal amounts of JavaScript code. The principles of working with HTMX in conjunction with Java, Spring Boot, and Thymeleaf are described in detail. Basic techniques for replacing DOM elements using various triggers, working with requests and headers, as well as the use of the htmx-spring-boot library are demonstrated. It is explained how to use Out Of Band replacements. Ways to implement modern UI patterns such as lazy loading, active search, infinite scrolling, and real-time form validation are described. The possibilities of integrating web components and enhancing client-side logic with JavaScript and the Alpine.js library are considered. It is explained how to ensure the security of web applications on HTMX, how to handle events sent by the server, and use web sockets.