This article is written to explain principles of client-server connection, as well as to solve the problem and to explanation on a working project. Initial investigation showed that the home page, designed using a dark color scheme and animations, was suffering from long delays in loading times. animations, suffered from long loading delays. Users encountered a situation where only the HTML markup was loaded, but CSS styles were were applied much later. As a first measure, the download times from different sources were analyzed loading times from different sources and compared them to the performance of the optimization. For more in-depth optimization, it was decided to decision - to apply a number of approaches aimed at improving performance. In particular, one of the main measures was to improve the processing of JavaScript and its integration with CSS, which helped minimize the lag time between the initial page load and the display of styles. In addition, a system of caching system, which helped to reduce the number of requests to the server and improve the overall loading speed. As a result, a unique solution that fixed the problem, and users no longer encountered this problem.
Mycyk et al. (Fri,) studied this question.