Well, I am still having an issue with this. I am using koolreport which is not super fast. When I call my page it renders most of the page but there is one section of charts that usually (i'd say 80% of the time) doesn't render on the first try, on a large report. Now if I then press the browser refresh, the chart then appears. Seems to me that the browser page is displaying before koolreport engine is done rendering. When I press refresh, no new code is running, right? The vender of koolereport is intent on me debugging this myself and that my data is not appearing fast enough. I am getting data from AWS RDS and then processing it. My sql sucks. But CI3 is synchronous, not async, right? I think the fact that the refresh works 100% of the time means something else is happening and it might not be a great answer but slowing down the browser might be my only option?
How about delaying for a few seconds and then having CI3 call for a refresh?
Perhaps the answer is refreshing the browser window from my CI3 application?
People have mentioned using sleep. but how can I sleep the browser without sleeping the CI3 processing the data?
Well, I am still having an issue with this. I am using koolreport which is not super fast. When I call my page it renders most of the page but there is one section of charts that usually (i'd say 80% of the time) don't render on the first try. Now if I then press the browser refresh, the chart then appears. Seems to me that the page is displaying before the rendering is done. When I press refresh, no new code is running. The vender koolereport is intent on me debugging this and that my data is not appearing fast enough. I am getting data from AWS RDS. Is the data being loaded asynch? I think the fact that the refresh works 100% of the times means something else is happening and it might not be a great answer but slowing down the browser might be my only option?
proof that an old dog can learn new tricks