2 10 PB
2 10 PB
16-20, 2022
Synchronous Vs Asynchronous
Content Loading On The Internet
Abstract—Fast and fluent loading of content on the Internet of the web page to load; it is essential to think about the visual-
today is becoming an imperative of modern web programming, aesthetic side of content loading. Using asynchronous access to
which makes IT today, faster than ever, developing and the content of web applications in 2022 is considered the best
expanding its domain of activity, in order to provide users with practice so far. In the past, the traditional, sequential approach
the most comfortable and pleasant use of Internet content. worked by stopping the application, and the user's screen
Traditional approaches in programming provide the main "freezes" until the content is not available for manipulation by
support for the development of new technologies and approaches the user and the application starts working again. Today, such
in solving the more complex problems that engineers face today. an approach to loading web pages is considered a not so good
The ever-increasing amount of data, which must be processed,
solution, although we can still encounter such a way of
converted and made available to the user in a form that
represents easy data manipulation in the shortest possible time,
working applications and accessing a certain site and web page.
requires that the asynchronous model of loading content on the Therefore, asynchronous access to the content of the web
Internet replaces the previous sequential-synchronous model and application not only enables the timely appearance of the
that it be improved implements in the daily operation of searched content on the screen, whether it is browsing or
applications, programs, websites and the like. Accordingly, the accessing the site and the application via mobile phones, tablet
goal of this work is to explain how the asynchronous, or devices or computers, which the asynchronous method of
synchronous, content loading model works, as well as to prove programming offers as a solution, because a large amount of
that the asynchronous content loading model on the Internet is data from the database needs to access external application
superior to the synchronous model. Therefore, the subject of this programming interfaces in the shortest possible time, which on
paper is synchronous vs. asynchronous loading of content on the the other hand allows the server in the background of the
Internet application not to depend on the results of some slow
operation, until that same operation is performed. It strives for
Keywords- synchronous content loading; asynchronous content functionality in providing services to other programs or devices
loading; web loading; web page rendering; rendering; on-screen called clients, all for the purpose of satisfying the user himself
loading in interactive communication with certain web content. The
aim of this work is to prove that the asynchronous model of
I. INTRODUCTION content loading on the Internet is superior to the synchronous
The modern society of the 21st century implies an model.
accelerated pace of life and the rapid progress of technology.
Therefore, the progressive development of hardware and II. PREVIOUS RELATED RESEARCH
software does not allow the user, who is used to getting The traditional, existing synchronous programming model
everything "now and immediately", to wait in order to access relies on operations that are performed one after the other, that
the content that interests him. And so in the world of is, sequentially, and the program moves to the next step only
Information Technologies, and especially in the areas of web after the previous step has been fully completed. Such a linear
programming, the aspiration has been redirected to finding a approach to the execution of tasks encounters great difficulties
more efficient solution for fast loading of web pages, that and problems. Let's take into account that in modern client
content which represents the goal of interest and demand of the applications, the need for constant interaction with available
user himself. One of the important conditions that should not searchable content, which is located outside the working
be neglected is the efficiency of the programming itself, the memory, is becoming more and more frequent, which the
way of manipulating the data that is loaded. Also, a synchronous programming model, and then the result of
significantly greater impact, with more complex web loading content from the Internet, cannot satisfy, because a
applications, today when time is money, when the user does longer period of time is required to perform all the operations
not want to have the feeling that he has to wait for the content one after the other. An example of this way of executing
16 | A M S J o u r n a l
Synchronous Vs Asynchronous Content Loading On The Internet | IEEE
instructions with synchronous system calls blocks the thread asynchronous approach requires additional effort in order to
of execution of loading content until, for example, reading match the client interface with the data, so it is largely
from disk is complete. This type of programming tends to be necessary to block or match entire parts of the interface from
solved by the principle of "Multithreading", where it is the server to the final destination of displaying the content, i.e.
possible to perform several parallel processes at the same displaying the processed data [4].
time, and whose program work relies on an asynchronous
programming model that allows several operations to be
performed at the same time. Which provides greater comfort
to the user when loading content from the Internet [1].
17 | a m s j o u r n a l . o r g
Synchronous Vs Asynchronous Content Loading On The Internet | IEEE
If the script can be delayed, that means it can also be moved to Now that we're familiar with a popular way to manage
the bottom of the page. These are some of the tips on how to asynchronous code using promises, we can show a sample
speed up the loading of web pages [5]. Optimize images and code that uses the JavaScript language. The ECMAScript2017
video content, because over 40% of web page content consists standard provides a way to write asynchronous functions,
of images and photos. It is considered that the optimal size of where they look like synchronous functions, but of course,
photos is up to 150KB and that there is no need to display behave asynchronously, using the async and await keywords
images of huge resolutions, because just waiting for them to [8, 9].
be downloaded by users, if they have a bad internet
connection, can only spoil the user experience of using your
site.
It is also recommended to test the speed and performance
of the site itself after creating the website or during
development. If you follow the previously defined guidelines,
you will surely improve the loading speed of your site.
18 | A M S J o u r n a l
Synchronous Vs Asynchronous Content Loading On The Internet | IEEE
19 | a m s j o u r n a l . o r g
Synchronous Vs Asynchronous Content Loading On The Internet | IEEE
20 | A M S J o u r n a l