At 16:19 15/10/2002, Per Einar Ellefsen wrote:
>At 13:07 25.10.2002, Lee Goddard wrote:
>>Well, not really a patch but a tiny contribution to an
>>excellent guide -- Mr Beckman, I hope this is of use:
>>
>>On/section:
>>
>>         guide/performance.html#Using_1_Under_mod_perl_and_be
>>
>>         "Using $|=1 Under mod_perl and Better print() Techniques"
>>
>>Whilst the code is correct, even if it does use CGI.pm...,
>>It might be a good idea to mention that if an external file is pulled
>>in by the header, it seems that it has to be loaded before any
>>output occurs.
>>
>>My print_html_header methods have a flag which will cause
>>SCRIPT src  and relevant LINK href URIs to be parsed,
>>loaded and included inline. Slow but better than a poke in the eye
>>with a sharp stick.
>
>Hello Lee,
>
>I'm sorry, but I'm not sure I understand what you mean by "an external 
>file is pulled in by the header". I understand your example, but not its 
>relation to the section you refer to. Could you give a code example or 
>some more information?

Hello - I may have unsub'd from the list by now, so would you mind
cc'ing this for me if it doesn't get through and if you think it useful?

So, I simply meant that if you are trying to get $|=1 type "instant" output
and your HTML header pulls in other files -- using

         <script type="text/pascal" src="another.doc"></script>

or

         <link rel='stylesheet' type='text/css' href='outside.css'/>

then you will not get the expected output instantly, but only after the
whole document has loaded.

I guess this is because the document will not be rendered until
the browser (or let's face, the IE6) has received the external files
and the whole BODY.

If you trying sticking a CSS/script link in the $q->html_head call
in the mod_perl Guide example, you should see what I mean.

Took me hours to figure it out....

Cheers
lee

Reply via email to