My webpage uses several api and the total page load time is about 8 seconds. I want to display a page load image during page load. It may seem that the whole page is fading and an image is displayed that represents the loading of the page, and as soon as the page loads, I want to return to my page. How can I show this functionality on php website?
A bit more information: The page does not load until all the visualizations on the page are fully loaded. In other words, the URL of the page does not even change as soon as the link is clicked. As soon as the link changes, the web page loads, so any solution or reason why this happens?
I really use the GAPI class to get the Google Analytics feed and use google javascript to display images. I use several GAPIs for different data parameter calls, since one specific combination does not work in one command ...
sample:
$pie->requestReportData(ga_profile_id,array('browser'),array('pageviews'),'-pageviews','',$start_date,$end_date,$start_index=1,$max_results=50);
$ga->requestReportData(ga_profile_id,array('date'),array('visits','visitors'),'date','',$start_date,$end_date,$start_index=1,$max_results=50);
The returned values are stored in an array and are used to render google.
Each of them is stored in separate files, and I call them using include ();