can someone please explain to me why is loading time of test.php?q=two 2 seconds, even though both "images" are loaded in parallel? Why has sleep in test.php?q=one effect on test.php?q=two ?
Proof that they are loading concurrently and that it takes second request twice as much time to finish:
Code:
<?php
if (isset($_GET['q'])) sleep(1);
else{
?>
<img src="test.php?q=one">
<img src="test.php?q=two">
<?php
}