I have a PHP function on my site which takes a couple of seconds to complete. This holds the whole page up which I don't want.
Would it be possible with jquery to call this PHP function after the page has loaded and display the results in a div? Also to display an ajax loader image until the PHP function has completed?
I've been looking at jQuery.post but can't seem to get it to work.
Would someone be able to help?
AJAX does the magic: