I've got a page/script which 'includes' other subpages.. how can I force my main page to stop running any further code until the subpages (included pages) have fully loaded?
Is this a PHP issue or a JavaScript issue? Since (normally) PHP is not multi-threaded, I wouldn't expect this to be a PHP issue, but could be a JavaScript issue if, say, you do a bunch of AJAX type requests on the client side to populate the page?
Unless you mean using something like output buffering to delay sending anything to the browser until some part of the PHP script has completed?
https://www.php.net/manual/en/book.outcontrol.php