Welcome Guest, Not a member yet? Register   Sign In
Cache and time lag
#3

[eluser]richthegeek[/eluser]
The lag is from the server transfer and parsing by jQuery, not from the PHP.

Server transfers are never going to be as fast as you need them to be - the *fastest* I have ever seen is ~500ms and on average it's about double that. Regardless of how small the output is (500ms was with a <10 char string as the output) or what encoding you use, the transfer will always have a minimum required for DNS resolution, connection, acceptance of the response, and initial parsing by the javascript (pre-callback).

Long story short, you should be creating the tree structure on page output (ie, via PHP) and controlling just the collapsing/expanding with jQuery.


Messages In This Thread
Cache and time lag - by El Forum - 02-08-2010, 02:25 PM
Cache and time lag - by El Forum - 02-08-2010, 07:37 PM
Cache and time lag - by El Forum - 02-08-2010, 08:00 PM
Cache and time lag - by El Forum - 02-09-2010, 12:24 AM
Cache and time lag - by El Forum - 02-09-2010, 04:07 AM
Cache and time lag - by El Forum - 02-09-2010, 03:06 PM



Theme © iAndrew 2016 - Forum software by © MyBB