I am using Google Visualization API to create tables on a page. These tables get their data from queries which take a lot of time. Since Google Visualization's default behavior is to call the API to draw the chart in the header, it slows down the page load time.
I want to load the page with temporary 'loading' images, and then execute the script after the page fully loads so that the page feels more responsive. Is there any way to do this?
I've tried using jQuery(window).load
but that didn't work.
**UPDATE: Paging the table looks like a temporary solution to this problem (e.g table.draw(data, {page: 'enable' ,pageSize: 100})), it's defiantly not stable solution but it's something, the problem is that it solves this problem for tables but not graphs, so I will continue my updates