|
Posted by Jay on 01/23/06 12:48
that's the problem ..
php code is first ...
javascript (client side) is second ....
the issue is that the javascript (2part of the code) calls eBay, and eBay
can be slow outputting.
therefore,
would rather show php output first (flush it), then display javascript 2nd -
if it takes 20 secs to render - who cares, at least user has something to
look at first!
:)
"J.O. Aho" <user@example.net> wrote in message
news:43ip4eF1o1bbpU1@individual.net...
> Jay wrote:
>> this Javascipt is callin an eBay .dll file (searching for eBay items) -
>> that's why I want to output everything first, the call the javascript.
> ...
>> I remember programming in C, where you could output to screen one line at
>> a
>> time:
>>
>> output line 1
>> output line 2
>> output line 3
>> etc ...
>>
>> I'm thinking this should be possible in PHP
>
> It's possible, but javascript isn't run on the webserver, it's still run
> on
> the clients machine, so no matter how you write the php code, the page
> will
> take the same time to execute and show on the client, some tricke may make
> it
> seem to render faster but from the first code received to that the whole
> page
> is displayed, will be around the same (excluding differences for
> bandwidth,
> CPU load and other things you aren't able to control).
>
>
> //Aho
Navigation:
[Reply to this message]
|