joquius Posted June 12, 2006 Share Posted June 12, 2006 I don't usually ask questions but this is kind of a "wondering".I have a script which loads different pages and remembers the history of the loaded pages by using cookies in the form of tabs. Now at the moment this script saves only the link to each page and each page has to reload itself again (each page contains data from a DB) which is not too fast and makes the tabs a bit untabish. Now what I'm thinking is about preloading the $result for each window query in the php, and then transferring those to javascript, and then playing around with the windows in javascript.What do you think? On the one hand I don't know if it's good to preload about 6 queries with about 20 rows each (about 1k per row)Any ideas or advice from someone with a lot of background in coding?Thanks in advance for any feedback. Quote Link to comment https://forums.phpfreaks.com/topic/11788-preloading-mysql-results/ Share on other sites More sharing options...
.josh Posted June 12, 2006 Share Posted June 12, 2006 well there is always storing the results as sessions but for all intents and purposes that probably just as slow from the user's POV i think. I think JSing it would probably be your best solution. I mean, 20 rows at 1k * 6 is 120k. that's not really a whole lot of waiting even on dialup speed. I think it would be better for the one time wait than having your site be slow overall, right? Quote Link to comment https://forums.phpfreaks.com/topic/11788-preloading-mysql-results/#findComment-44642 Share on other sites More sharing options...
joquius Posted June 13, 2006 Author Share Posted June 13, 2006 suppose so, at any rate I'm looking for ways to move loops which output html from php to javascript to reduce the strain on my server and the bandwidth in use. Quote Link to comment https://forums.phpfreaks.com/topic/11788-preloading-mysql-results/#findComment-44895 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.