Welcome Guest, Not a member yet? Register   Sign In
Display interim, processing-intensive page ASAP
#5

[eluser]bubbafoley[/eluser]
[quote author="CodeIgniterNewbie" date="1298866009"]@bubbafoley - how does adding Page-A1 make Page-B appear faster?[/quote]

If Page-B did all of the processing then it would have to wait until all that processing was finished before displaying any output. Doing the processing via cUrl with a timeout of 1 second tells Page-B not to wait for the processing to finish before sending output.

[quote author="SimonH" date="1298921954"]Hi,

maybe a little bit of a different approach, however you could use an AJAX request on page B to check whether the processing is done and / or kick of the processing. This way you will be certain that the processing is only started once Page B has loaded because you can use JQuery (for example) to execute said AJAX call once the document has loaded.

Hope this helps.[/quote]

This works too.


Messages In This Thread
Display interim, processing-intensive page ASAP - by El Forum - 02-24-2011, 06:18 PM
Display interim, processing-intensive page ASAP - by El Forum - 02-24-2011, 09:06 PM
Display interim, processing-intensive page ASAP - by El Forum - 02-27-2011, 04:06 PM
Display interim, processing-intensive page ASAP - by El Forum - 02-28-2011, 07:39 AM
Display interim, processing-intensive page ASAP - by El Forum - 02-28-2011, 10:19 AM



Theme © iAndrew 2016 - Forum software by © MyBB