Add spinner, or show a prepared message after click on the button.
Dec 5, 2020
3
Level 4
Don't wait for PHP function to finish execution
AJAX calls a script which could return answer almost immediately, but it hangs for 700-500ms (depends) on updating relevant statistics etc. Could I just trigger function with these statistics and not wait for execution to finish and answer AJAX right away?
I would do it as queue job. But it's manager VPS without SSH. I can't install a supervisor to make queue jobs work as I usually do.
Please or to participate in this conversation.