A
A
andoral2017-12-25 18:36:20
Multithreading
andoral, 2017-12-25 18:36:20

Is it possible to multi-thread loading the site?

For example, one thread loads images, another - scripts, the third - markup, the fourth - styles
Or the entire content of the page is divided into the number of threads and loaded separately

Answer the question

In order to leave comments, you need to log in

4 answer(s)
V
VoidVolker, 2017-12-25
@VoidVolker

Yes.

O
oh, 2017-12-25
well @AnneSmith

well, this is approximately how it is done, only we are not talking about streams, but about the loading order,
read about optimizing the speed of loading web pages

P
Pavel Kornilov, 2017-12-25
@KorniloFF

http/2 ?
What are the cons of moving to HTTP/2?

R
Rou1997, 2017-12-26
@Rou1997

One page is unlikely ... If you look at the TCP level, then how will you work with one socket from different streams ...
But, let's say, if there is pagination, then you can.
But it is also possible to bring down the site in this way.
Did it myself. On one rather popular site there was a huge TOP - pages of 40 thousand, and I wanted to get it all completely, but not in half a day, but in 30 minutes. I could not. The site stupidly falls and generally ceases to open anywhere :D This is the second such site.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question