I have one script that loads very quickly, but I have another script that I want to run with that script, but that scripts processes a LOT slower. The second script doesn’t need to output anything to the user, it only needs to run. Is there a way I can include it locally, without making the user have to wait for it to load?
EDIT: I’d really like to keep this part pure PHP if possible.
make a call to it through ajax. that way everything can load on the page, and that can run in the background.
you’ll have to be careful though that the user refreshing the page won’t run the script again and overload your server.